[Checkins] SVN: z3c.dobbin/trunk/src/z3c/dobbin/zs2sa.py Assign the
empty string as the default value for strings.
Malthe Borch
mborch at gmail.com
Fri Jul 18 08:23:25 EDT 2008
Log message for revision 88494:
Assign the empty string as the default value for strings.
Changed:
U z3c.dobbin/trunk/src/z3c/dobbin/zs2sa.py
-=-
Modified: z3c.dobbin/trunk/src/z3c/dobbin/zs2sa.py
===================================================================
--- z3c.dobbin/trunk/src/z3c/dobbin/zs2sa.py 2008-07-18 11:29:44 UTC (rev 88493)
+++ z3c.dobbin/trunk/src/z3c/dobbin/zs2sa.py 2008-07-18 12:23:23 UTC (rev 88494)
@@ -60,6 +60,10 @@
d = super( StringTranslator, self ).extractInfo( field, info )
if schema.interfaces.IMinMaxLen.providedBy( field ):
d['type'].length = field.max_length
+
+ if field.default is None:
+ d['default'] = u""
+
return d
class ObjectTranslator(object):
More information about the Checkins
mailing list