[Zope3-checkins] CVS: Zope3/src/zope/app/index/text - index.py:1.11 processors.py:1.7 queries.py:1.4

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


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

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


=== Zope3/src/zope/app/index/text/index.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/index/text/index.py:1.10	Tue May 27 10:18:17 2003
+++ Zope3/src/zope/app/index/text/index.py	Sat Jun  7 02:37:27 2003
@@ -34,11 +34,11 @@
      IObjectModifiedHubEvent
 from zope.app.interfaces.index.text import ISearchableText
 from zope.app.interfaces.index.text import IUITextIndex
+from zope.interface import implements
 
 class TextIndex(TextIndexWrapper):
 
-    __implements__ = (TextIndexWrapper.__implements__,
-                      ISubscriber, IUITextIndex)
+    implements(ISubscriber, IUITextIndex)
 
     def notify(wrapped_self, event):
         """An event occurred.  Index or unindex the object in response."""


=== Zope3/src/zope/app/index/text/processors.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/index/text/processors.py:1.6	Thu May  1 15:35:20 2003
+++ Zope3/src/zope/app/index/text/processors.py	Sat Jun  7 02:37:27 2003
@@ -24,10 +24,11 @@
 from zope.app.interfaces.index.interfaces import IBatchedTextIndexQuery
 from zope.app.interfaces.services.query import IQueryProcessor
 from zope.app.index.queries import BatchedRankedResult
+from zope.interface import implements
 
 class BatchedRankedProcessor:
 
-    __implements__ = IQueryProcessor
+    implements(IQueryProcessor)
     __used_for__ = IQuerying
 
     inputInterfaces = (IBatchedTextIndexQuery,)


=== Zope3/src/zope/app/index/text/queries.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/index/text/queries.py:1.3	Thu May  1 15:35:20 2003
+++ Zope3/src/zope/app/index/text/queries.py	Sat Jun  7 02:37:27 2003
@@ -17,10 +17,11 @@
 """
 
 from zope.app.interfaces.index.interfaces import IBatchedTextIndexQuery
+from zope.interface import implements
 
 class BatchedTextIndexQuery:
 
-    __implements__ = IBatchedTextIndexQuery
+    implements(IBatchedTextIndexQuery)
 
     def __init__(self, query, startposition, batchsize):