[Zope3-checkins] CVS: Zope3/src/zope/app/index - __init__.py:1.5 processors.py:1.11

Jim Fulton jim at zope.com
Sun Sep 21 13:32:24 EDT 2003


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

Modified Files:
	__init__.py processors.py 
Log Message:
No-longer use context wrappers.


=== Zope3/src/zope/app/index/__init__.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/index/__init__.py:1.4	Sun Aug 17 02:06:47 2003
+++ Zope3/src/zope/app/index/__init__.py	Sun Sep 21 13:31:54 2003
@@ -19,7 +19,6 @@
 from zope.app.interfaces.index import IInterfaceIndexer
 from zope.app.interfaces.event import ISubscriber
 from zope.component import queryAdapter
-from zope.context import ContextMethod
 
 from zope.app.interfaces.services.hub import \
      IObjectRegisteredHubEvent, \
@@ -77,5 +76,4 @@
                 self.unindex_doc(event.hubid)
             except KeyError:
                 pass
-    notify = ContextMethod(notify)
 


=== Zope3/src/zope/app/index/processors.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/index/processors.py:1.10	Sat Jun  7 02:37:26 2003
+++ Zope3/src/zope/app/index/processors.py	Sun Sep 21 13:31:54 2003
@@ -25,10 +25,10 @@
 
 from zope.component import getAdapter, getService
 from zope.app.services.servicenames import HubIds
-from zope.context import ContextMethod
+from zope.app.container.contained import Contained
 from zope.interface import implements
 
-class ObjectRetrievingProcessor:
+class ObjectRetrievingProcessor(Contained):
     """Converts a RankedHubIdList into an iteratable
        list of ranked objects by retrieving the objects
        from the ObjectHub.
@@ -39,11 +39,11 @@
     inputInterfaces = (IRankedHubIdList, IBatchedResult)
     outputInterfaces = (IRankedObjectIterator,)
 
-    def __call__(wrapped_self, query):
+    def __call__(self, query):
         list = getAdapter(query, IRankedHubIdList)
         batch = getAdapter(query, IBatchedResult)
 
-        objectHub = getService(wrapped_self, HubIds)
+        objectHub = getService(self, HubIds)
 
         # XXX do we need wrapping for the objects returned by the hub?
         iterator = RankedObjectIterator(
@@ -52,7 +52,6 @@
                         )
 
         return iterator
-    __call__ = ContextMethod(__call__)
 
 class RankedObjectIterator:
     """Iterates over a given list of IRankedObjectRecord."""




More information about the Zope3-Checkins mailing list