[Zope3-checkins] SVN: zope.formlib/trunk/src/zope/formlib/form.py removed default value as it masks a possible CouldNotAdapt, failing later on
Michael Howitz
cvs-admin at zope.org
Thu Mar 15 09:47:33 UTC 2012
Log message for revision 124602:
removed default value as it masks a possible CouldNotAdapt, failing later on
Changed:
U zope.formlib/trunk/src/zope/formlib/form.py
-=-
Modified: zope.formlib/trunk/src/zope/formlib/form.py
===================================================================
--- zope.formlib/trunk/src/zope/formlib/form.py 2012-03-15 09:26:33 UTC (rev 124601)
+++ zope.formlib/trunk/src/zope/formlib/form.py 2012-03-15 09:47:29 UTC (rev 124602)
@@ -479,7 +479,7 @@
raise NoInputData(name)
# The value is not in the form look it up on the context:
field = schema[name]
- adapted_context = schema(context, None)
+ adapted_context = schema(context)
if IField.providedBy(field):
value = field.get(adapted_context)
elif (zope.interface.interfaces.IAttribute.providedBy(field)
More information about the Zope3-Checkins
mailing list