[Zope3-checkins] CVS: Zope3/src/zope/app/form - utility.py:1.13

Steve Alexander steve@cat-box.net
Fri, 21 Feb 2003 12:52:49 -0500


Update of /cvs-repository/Zope3/src/zope/app/form
In directory cvs.zope.org:/tmp/cvs-serv20293/src/zope/app/form

Modified Files:
	utility.py 
Log Message:
Made the exception raised by getWidgetsData more regular.
Changed widget_name to field_name, because that's what it should be.


=== Zope3/src/zope/app/form/utility.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/form/utility.py:1.12	Fri Feb 21 09:53:33 2003
+++ Zope3/src/zope/app/form/utility.py	Fri Feb 21 12:52:18 2003
@@ -180,8 +180,9 @@
                 except InputErrors, v:
                     errors.append(v)
             elif strict and field.required:
-                raise MissingInputError(
-                    widget.name, widget.title, name)
+                errors.append(MissingInputError(name, widget.title,
+                                                'the field is required')
+                              )
             elif set_missing:
                 result[name] = None # XXX field.missing_value