[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG - ResultListNG.py:1.2.2.2

Andreas Jung andreas@zope.com
Mon, 7 Jan 2002 14:14:36 -0500


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG
In directory cvs.zope.org:/tmp/cvs-serv18749

Modified Files:
      Tag: ajung-textindexng-branch
	ResultListNG.py 
Log Message:
replaced dict by IIBucket()


=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/ResultListNG.py 1.2.2.1 => 1.2.2.2 ===
 from BTrees.IIBTree import IIBucket,IISet
 from BTrees.OOBTree import OOSet
+from BTrees.IOBTree import IOBucket
 from BTrees.IIBTree import weightedIntersection,  difference
 from BTrees.IIBTree import union as Iunion
 from BTrees.IIBTree import intersection as Iintersection
@@ -34,7 +35,7 @@
         if type(words) is not OOSet: words=OOSet(words)
         self._words = words
 
-        self._dict = d        
+        self._dict = IOBucket( d )        
 
         self.keys    = self._dict.keys
         self.values  = self._dict.values
@@ -135,10 +136,7 @@
 
         for docId in inters.keys():
 
-            debug('searching for positions',docId,self._words)
             p1 = positions(docId, self._words)
-           
-            debug('searching for positions',docId,x._words)
             p2 = positions(docId, x._words)
 
             leftPositions = IISet()