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

Gary Poster gary at zope.com
Fri Sep 26 15:54:06 EDT 2003


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

Modified Files:
	form.py 
Log Message:
make title and description properties that translate themselves if possible.  Add description attribute to IWidget.



=== Zope3/src/zope/app/interfaces/form.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/interfaces/form.py:1.8	Sun Aug 17 02:07:02 2003
+++ Zope3/src/zope/app/interfaces/form.py	Fri Sep 26 15:53:35 2003
@@ -114,7 +114,7 @@
     def getInputValue():
         """Return value suitable for the widget's field.
 
-        The widget must return a value that can be legally assigned to 
+        The widget must return a value that can be legally assigned to
         its bound field or otherwise raise WidgetInputError.
 
         See validate() for validation performed.
@@ -138,7 +138,7 @@
         hasValidInput to determine whether or not getInputValue will return
         a valid value.
 
-        A widget that does not have input should generally not be used to 
+        A widget that does not have input should generally not be used to
         update its bound field.
         """
 
@@ -155,7 +155,11 @@
         This must be unique within a set of widgets.
         """)
 
-    title = Attribute("The widget title")
+    title = Attribute(
+        """The widget title; may be translated for the request""")
+
+    description = Attribute(
+        """The widget description; may be translated for the request""")
 
     required = Attribute("Flag indicating whether the field is required")
 




More information about the Zope3-Checkins mailing list