[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/utility.py
Renamed variable for clarity
Stephan Richter
srichter at cosmos.phy.tufts.edu
Wed Jul 7 12:36:53 EDT 2004
Log message for revision 26161:
Renamed variable for clarity
-=-
Modified: Zope3/trunk/src/zope/app/form/utility.py
===================================================================
--- Zope3/trunk/src/zope/app/form/utility.py 2004-07-07 16:19:17 UTC (rev 26160)
+++ Zope3/trunk/src/zope/app/form/utility.py 2004-07-07 16:36:53 UTC (rev 26161)
@@ -260,15 +260,15 @@
"""
result = {}
errors = []
-
+
for name, field in _fieldlist(names, schema):
widget = getattr(view, name + '_widget')
if IInputWidget.providedBy(widget):
if widget.hasInput():
try:
result[name] = widget.getInputValue()
- except InputErrors, v:
- errors.append(v)
+ except InputErrors, error:
+ errors.append(error)
elif field.required:
errors.append(MissingInputError(
name, widget.label, 'the field is required'))
More information about the Zope3-Checkins
mailing list