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

Philipp von Weitershausen philikon@philikon.de
Fri, 6 Jun 2003 17:35:47 -0400


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

Modified Files:
	interfacewidget.py 
Log Message:
New interface declaration.


=== Zope3/src/zope/app/browser/component/interfacewidget.py 1.28 => 1.29 ===
--- Zope3/src/zope/app/browser/component/interfacewidget.py:1.28	Tue Apr  8 17:44:34 2003
+++ Zope3/src/zope/app/browser/component/interfacewidget.py	Fri Jun  6 17:35:16 2003
@@ -17,7 +17,7 @@
 """
 
 import sys
-from zope.interface import Interface
+from zope.interface import Interface, implements
 from zope.app.interfaces.browser.form import IBrowserWidget
 from zope.app.interfaces.form import WidgetInputError, ConversionError
 from zope.app.form.widget import Widget
@@ -31,7 +31,7 @@
 from zope.app.i18n import ZopeMessageIDFactory as _
 
 class InterfaceWidget(Widget, BrowserView):
-    __implements__ = IBrowserWidget
+    implements(IBrowserWidget)
 
     def haveData(self):
         if self.name in self.request.form:
@@ -143,7 +143,7 @@
 # which is a tuple of interfaces.
 class MultiInterfaceWidget(Widget, BrowserView):
 
-    __implements__ = IBrowserWidget
+    implements(IBrowserWidget)
 
     # Names used:
     #