[Zope3-checkins] CVS: Zope3/src/zope/app/index/text -
processors.py:1.11
Jim Fulton
jim at zope.com
Sat Mar 6 11:50:58 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/index/text
In directory cvs.zope.org:/tmp/cvs-serv11249/src/zope/app/index/text
Modified Files:
processors.py
Log Message:
Converted most getAdapter calls to use interface calls instead.
=== Zope3/src/zope/app/index/text/processors.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/index/text/processors.py:1.10 Tue Mar 2 09:40:13 2004
+++ Zope3/src/zope/app/index/text/processors.py Sat Mar 6 11:50:25 2004
@@ -16,8 +16,6 @@
$Id$
"""
-from zope.component import getAdapter
-
from zope.index.interfaces import IQuerying
from zope.app.index.interfaces.interfaces import IBatchedResult
from zope.app.index.interfaces.interfaces import IRankedHubIdList
@@ -38,7 +36,7 @@
self.textindex = textindex
def __call__(self, query):
- query = getAdapter(query, IBatchedTextIndexQuery)
+ query = IBatchedTextIndexQuery(query)
resultlist, totalresults = self.textindex.query(query.textIndexQuery,
query.startPosition,
query.batchSize)
More information about the Zope3-Checkins
mailing list