[Zope3-checkins] CVS: Zope3/src/zope/app/index - processors.py:1.14
Jim Fulton
jim at zope.com
Sat Mar 6 11:50:58 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/index
In directory cvs.zope.org:/tmp/cvs-serv11249/src/zope/app/index
Modified Files:
processors.py
Log Message:
Converted most getAdapter calls to use interface calls instead.
=== Zope3/src/zope/app/index/processors.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/index/processors.py:1.13 Tue Mar 2 09:40:04 2004
+++ Zope3/src/zope/app/index/processors.py Sat Mar 6 11:50:25 2004
@@ -20,7 +20,7 @@
IRankedHubIdList, IBatchedResult
from zope.app.interfaces.services.query import IQueryProcessor
-from zope.component import getAdapter, getService
+from zope.component import getService
from zope.app.services.servicenames import HubIds
from zope.app.container.contained import Contained
from zope.interface import implements
@@ -37,8 +37,8 @@
outputInterfaces = (IRankedObjectIterator,)
def __call__(self, query):
- list = getAdapter(query, IRankedHubIdList)
- batch = getAdapter(query, IBatchedResult)
+ list = IRankedHubIdList(query)
+ batch = IBatchedResult(query)
objectHub = getService(self, HubIds)
More information about the Zope3-Checkins
mailing list