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

Gary Poster gary at zope.com
Fri Sep 26 15:53:36 EDT 2003


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

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/browser/form.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/interfaces/browser/form.py:1.14	Thu Sep 25 17:43:13 2003
+++ Zope3/src/zope/app/interfaces/browser/form.py	Fri Sep 26 15:53:35 2003
@@ -83,7 +83,7 @@
        default value and so on.
     """
 
-    def __call__():
+    def __call__(): # XXX promote to IWidget?
         """Render the widget
         """
 
@@ -93,13 +93,13 @@
 
     def label():
         """Render a label tag"""
-    
-    def error():
-        """Render the validation error for the widget, or return 
+
+    def error(): # XXX promote to IWidget?
+        """Render the validation error for the widget, or return
         an empty string if no error"""
 
     def row():
-        """Render the widget as two or three div elements, 
+        """Render the widget as two or three div elements,
            for the label, the field and possibly the validation error
 
         For example:




More information about the Zope3-Checkins mailing list