[Zope3-checkins] CVS: Zope3/src/zope/app/index/field - index.py:1.5

Steve Alexander steve@cat-box.net
Sat, 7 Jun 2003 02:37:57 -0400


Update of /cvs-repository/Zope3/src/zope/app/index/field
In directory cvs.zope.org:/tmp/cvs-serv4294/src/zope/app/index/field

Modified Files:
	index.py 
Log Message:
updated to use new-style interface declarations


=== Zope3/src/zope/app/index/field/index.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/index/field/index.py:1.4	Tue May 27 10:18:17 2003
+++ Zope3/src/zope/app/index/field/index.py	Sat Jun  7 02:37:26 2003
@@ -26,6 +26,7 @@
 from zope.context import ContextMethod
 from zope.app.interfaces.event import ISubscriber
 from zope.fieldindex.fieldindex import FieldIndex as FieldIndexWrapper
+from zope.interface import implements
 
 from zope.app.interfaces.services.hub import \
      IRegistrationHubEvent, \
@@ -37,8 +38,7 @@
 
 class FieldIndex(FieldIndexWrapper):
 
-    __implements__ = (FieldIndexWrapper.__implements__,
-                      ISubscriber, IUIFieldIndex)
+    implements(ISubscriber, IUIFieldIndex)
 
     def __init__(self, indexed_attr):
         FieldIndexWrapper.__init__(self)