[Zope3-checkins] CVS: Zope3/src/zope/app/form - widget.py:1.5
Steve Alexander
steve@cat-box.net
Wed, 4 Jun 2003 07:14:18 -0400
Update of /cvs-repository/Zope3/src/zope/app/form
In directory cvs.zope.org:/tmp/cvs-serv14850/src/zope/app/form
Modified Files:
widget.py
Log Message:
new style implements()
=== Zope3/src/zope/app/form/widget.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/form/widget.py:1.4 Thu Jan 9 09:13:08 2003
+++ Zope3/src/zope/app/form/widget.py Wed Jun 4 07:13:48 2003
@@ -16,13 +16,14 @@
"""
from zope.app.interfaces.form import IWidget
from zope.component.interfaces import IViewFactory
+from zope.interface import implements
__metaclass__ = type
class Widget:
"""Mix-in class providing some functionality common accross view types
"""
- __implements__ = IWidget
+ implements(IWidget)
_prefix = 'field.'
_data = None
@@ -61,7 +62,7 @@
class CustomWidget:
"""Custom Widget."""
- __implements__ = IViewFactory
+ implements(IViewFactory)
def __init__(self, widget, **kw):
self.widget = widget