[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/metadirectives.py update IWidgetSubdirective to match the actual requirements of the handler

Fred L. Drake, Jr. fdrake at gmail.com
Thu Oct 28 18:06:58 EDT 2004


Log message for revision 28278:
  update IWidgetSubdirective to match the actual requirements of the handler

Changed:
  U   Zope3/trunk/src/zope/app/form/browser/metadirectives.py

-=-
Modified: Zope3/trunk/src/zope/app/form/browser/metadirectives.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/metadirectives.py	2004-10-28 19:21:12 UTC (rev 28277)
+++ Zope3/trunk/src/zope/app/form/browser/metadirectives.py	2004-10-28 22:06:58 UTC (rev 28278)
@@ -334,8 +334,8 @@
     This directive allows you to quickly generate custom widget directives for
     a form.
     
-    Besides the two default arguments, field and class, you can specify any 
-    amount of keyword arguments, e.g. style="background-color:#fefefe;".
+    Besides the two required arguments, field and class, you can specify any 
+    amount of keyword arguments, e.g. style='background-color:#fefefe;'.
     The keywords will be stored as attributes on the widget instance. To see
     which keywords are sensible, you should look at the code of the specified
     widget class.
@@ -346,13 +346,13 @@
         description=u"""
         The name of the field/attribute/property for which this widget will be
         used.""",
-        required=False
+        required=True,
         )
 
     class_ = GlobalObject(
         title=u"Widget Class",
         description=u"""The class that will create the widget.""",
-        required=False
+        required=True,
         )
 
 # Arbitrary keys and values are allowed to be passed to the CustomWidget.



More information about the Zope3-Checkins mailing list