[Zope3-checkins] CVS: Zope3/src/zope/app/browser/component - interfacewidget.py:1.4

Steve Alexander steve@cat-box.net
Mon, 6 Jan 2003 09:49:15 -0500


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

Modified Files:
	interfacewidget.py 
Log Message:
Made clear which methods of the IBrowserWidget are deprecated.
Added tests for MultiInterfaceWidget's row() and label() methods.


=== Zope3/src/zope/app/browser/component/interfacewidget.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/component/interfacewidget.py:1.3	Sun Jan  5 13:56:52 2003
+++ Zope3/src/zope/app/browser/component/interfacewidget.py	Mon Jan  6 09:49:12 2003
@@ -208,24 +208,16 @@
                     for interface in data]
         return ''.join(elements)
        
-
-    # --- deprecated methods of IBrowserWidget
-    #def label(self):
-    #    'See IBrowserWidget'
-    #    raise NotImplementedError
-        
     def label(self):
         return '<label for="%s">%s</label>' % (
             self.name,
             self.title,
             )
 
-    #def row(self):
-    #    'See IBrowserWidget'
-    #    raise NotImplementedError
-
     def row(self):
         return "<td>%s</td><td>%s</td>" % (self.label(), self())
+
+    # --- deprecated methods of IBrowserWidget
 
     def renderHidden(self, value):
         'See IBrowserWidget'