[Checkins] SVN: z3c.form/trunk/src/z3c/form/object.py found one more weird case where obj became None

Adam Groszer agroszer at gmail.com
Sun Mar 29 05:32:50 EDT 2009


Log message for revision 98443:
  found one more weird case where obj became None
  

Changed:
  U   z3c.form/trunk/src/z3c/form/object.py

-=-
Modified: z3c.form/trunk/src/z3c/form/object.py
===================================================================
--- z3c.form/trunk/src/z3c/form/object.py	2009-03-29 08:47:00 UTC (rev 98442)
+++ z3c.form/trunk/src/z3c/form/object.py	2009-03-29 09:32:50 UTC (rev 98443)
@@ -146,6 +146,10 @@
                 except AttributeError:
                     obj = self.createObject(value)
 
+        if obj is None:
+            #if still None create one, otherwise following will burp
+            obj = self.createObject(value)
+
         obj = self.field.schema(obj)
 
         names = []



More information about the Checkins mailing list