[Zope3-checkins] CVS: Zope3/src/zope/app/index - processors.py:1.1.2.2
Tim Peters
tim.one@comcast.net
Tue, 24 Dec 2002 21:21:30 -0500
Update of /cvs-repository/Zope3/src/zope/app/index
In directory cvs.zope.org:/tmp/cvs-serv19240/src/zope/app/index
Modified Files:
Tag: NameGeddon-branch
processors.py
Log Message:
Whitespace normalization, via Python's Tools/scripts/reindent.py. The
files are fixed-points of that script now. Fixed a few cases where
code relied on significant trailing whitespace (ouch).
=== Zope3/src/zope/app/index/processors.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/index/processors.py:1.1.2.1 Mon Dec 23 14:31:37 2002
+++ Zope3/src/zope/app/index/processors.py Tue Dec 24 21:20:29 2002
@@ -34,7 +34,7 @@
"""
__implements__ = IQueryProcessor
-
+
input_interface = IRankedHubIdList, IBatchedResult
output_interface = IRankedObjectIterator
@@ -43,14 +43,14 @@
batch = getAdapter(query, IBatchedResult)
objectHub = getService(wrapped_self, "ObjectHub")
-
+
# XXX do we need wrapping for the objects returned by the hub?
- iterator = RankedObjectIterator(list, objectHub.getObject, batch.startPosition,
+ iterator = RankedObjectIterator(list, objectHub.getObject, batch.startPosition,
batch.batchSize, batch.totalSize)
return iterator
__call__ = ContextMethod(__call__)
-
+
class RankedObjectIterator:
"""Iterates over a given list of IRankedObjectRecord."""
@@ -65,7 +65,7 @@
def __iter__(self):
objectfetcher = self.__objectfetcher
-
+
for hubid, rank in self._records:
# XXX maybe we should catch some exceptions like security related
# ones or NotFoundError, to avoid breaking the iteration. Think
@@ -83,4 +83,3 @@
def __init__(self, object, rank):
self.rank = rank
self.object = object
-