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

Jim Fulton jim@zope.com
Thu, 22 May 2003 18:49:29 -0400


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

Modified Files:
	form.py 
Log Message:
Moved the setPrefix method from IBrowserWidget to IWidget.



=== Zope3/src/zope/app/interfaces/form.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/form.py:1.2	Fri Feb 21 12:52:19 2003
+++ Zope3/src/zope/app/interfaces/form.py	Thu May 22 18:49:29 2003
@@ -90,7 +90,7 @@
                                  defined for the widget.""")
 
     def getValue(name):
-        """Look up a Widget setting (value) by name."""
+        """Look up a Widget configuration setting by name."""
 
     def getData():
         """Return converted and validated widget data.
@@ -125,4 +125,12 @@
 
         The given value should be used even if the user has entered
         data.
+        """
+
+    def setPrefix(prefix):
+        """Set the name prefix used for the widget
+
+        The widget name is used to identify the widget's data within
+        input data. For example, for HTTP forms, the widget name is
+        used for the form key.
         """