[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - widget.py:1.64.4.2

Garrett Smith garrett at mojave-corp.com
Sat Feb 7 21:47:37 EST 2004


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

Modified Files:
      Tag: ozzope-widgets-branch
	widget.py 
Log Message:

Setup for converting creating an interface for each widget.


=== Zope3/src/zope/app/browser/form/widget.py 1.64.4.1 => 1.64.4.2 ===
--- Zope3/src/zope/app/browser/form/widget.py:1.64.4.1	Sat Feb  7 21:11:52 2004
+++ Zope3/src/zope/app/browser/form/widget.py	Sat Feb  7 21:47:06 2004
@@ -32,6 +32,7 @@
 from zope.app import zapi
 from zope.app.tests import ztapi
 from zope.app.interfaces.browser.form import IBrowserWidget
+from zope.app.interfaces.browser import widget as interfaces
 from zope.app.form.widget import Widget
 from zope.app.form.utility import setUpEditWidgets, applyWidgetsChanges
 from zope.app.interfaces.form import ConversionError, WidgetInputError
@@ -153,6 +154,8 @@
     extra = ''
     _missing = ''
     _error = None
+    
+    required = property(lambda self: self.context.required)
 
     def hasInput(self):
         """See IWidget.hasInput.
@@ -398,9 +401,9 @@
     >>> widget.getInputValue()
     False
     """
-    propertyNames = BrowserWidget.propertyNames + \
-                     ['extra', 'default']
-
+    
+    implements(interfaces.ICheckBoxWidget)
+    
     type = 'checkbox'
     default = 0
     extra = ''




More information about the Zope3-Checkins mailing list