[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces - form.py:1.2

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


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

Modified Files:
	form.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/interfaces/form.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/interfaces/form.py:1.1	Thu Jan  9 09:13:12 2003
+++ Zope3/src/zope/app/interfaces/form.py	Fri Feb 21 12:52:19 2003
@@ -25,9 +25,9 @@
     """There were one or more user input errors
     """
 
-    def __init__(self, widget_name, widget_title, errors):
-        Exception.__init__(self, widget_name, widget_title, errors)
-        self.widget_name = widget_name
+    def __init__(self, field_name, widget_title, errors):
+        Exception.__init__(self, field_name, widget_title, errors)
+        self.field_name = field_name
         self.widget_title = widget_title
         self.errors = errors