[Zope3-checkins] SVN: Zope3/trunk/ - Made the SourceDisplayWidget derive from

Christian Theune ct at gocept.com
Fri Jan 19 12:55:47 EST 2007


Log message for revision 72106:
  - Made the SourceDisplayWidget derive from
    zope.app.form.browser.widget.DisplayWidget because it really is a browser
    widget.
  
  

Changed:
  U   Zope3/trunk/doc/CHANGES.txt
  U   Zope3/trunk/src/zope/app/form/browser/source.py
  U   Zope3/trunk/src/zope/app/form/browser/source.txt

-=-
Modified: Zope3/trunk/doc/CHANGES.txt
===================================================================
--- Zope3/trunk/doc/CHANGES.txt	2007-01-19 16:33:54 UTC (rev 72105)
+++ Zope3/trunk/doc/CHANGES.txt	2007-01-19 17:55:46 UTC (rev 72106)
@@ -161,6 +161,10 @@
 
     Bug fixes
 
+      - Made the SourceDisplayWidget derive from
+        zope.app.form.browser.widget.DisplayWidget because it really is a
+        browser widget.
+
       - Fixed bug #721: Handling of empty prefixes in zope.formlib and
         zope.app.form
 

Modified: Zope3/trunk/src/zope/app/form/browser/source.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/source.py	2007-01-19 16:33:54 UTC (rev 72105)
+++ Zope3/trunk/src/zope/app/form/browser/source.py	2007-01-19 17:55:46 UTC (rev 72106)
@@ -36,7 +36,7 @@
     SelectWidget, RadioWidget, MultiSelectWidget, OrderedMultiSelectWidget, \
     MultiCheckBoxWidget, MultiSelectSetWidget
 
-class SourceDisplayWidget(zope.app.form.Widget):
+class SourceDisplayWidget(zope.app.form.browser.widget.DisplayWidget):
 
     implements(zope.app.form.interfaces.IDisplayWidget)
 

Modified: Zope3/trunk/src/zope/app/form/browser/source.txt
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/source.txt	2007-01-19 16:33:54 UTC (rev 72105)
+++ Zope3/trunk/src/zope/app/form/browser/source.txt	2007-01-19 17:55:46 UTC (rev 72106)
@@ -865,6 +865,9 @@
   ...     pet, pet.source, request)
   >>> print widget()
   Nothing
+  >>> from zope.app.form.browser.interfaces import IBrowserWidget
+  >>> IBrowserWidget.providedBy(widget)
+  True
 
   >>> widget.setRenderedValue('tabby')
   >>> print widget()



More information about the Zope3-Checkins mailing list