bug fix: parameter default value may not be mutable literal object
This commit is contained in:
		
							parent
							
								
									e05ccdc96f
								
							
						
					
					
						commit
						ec5f453077
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue