bug fix: parameter default value may not be mutable literal object

This commit is contained in:
Helmut Merz 2014-02-18 12:16:16 +01:00
parent e05ccdc96f
commit ec5f453077

View file

@ -69,7 +69,9 @@ class FormState(object):
implements(IFormState) implements(IFormState)
def __init__(self, fieldInstances=[], changed=False, severity=0): def __init__(self, fieldInstances=None, changed=False, severity=0):
if fieldInstances is None:
fieldInstances = []
self.fieldInstances = Jeep(fieldInstances) self.fieldInstances = Jeep(fieldInstances)
self.changed = changed self.changed = changed
self.severity = severity self.severity = severity