[Zope-Checkins] CVS: Zope2 - UnIndex.py:1.23.2.2.6.9

chrism@serenade.digicool.com chrism@serenade.digicool.com
Sat, 10 Mar 2001 22:05:52 -0500


Update of /cvs-repository/Zope2/lib/python/SearchIndex
In directory serenade:/slab/home/chrism/sandboxes/CatalogBTreesIntegration/lib/python/SearchIndex

Modified Files:
      Tag: Catalog-BTrees-Integration
	UnIndex.py 
Log Message:
fixed apply_index to return an empty IISet instead of an empty OOSet when the index has no results to return... returning an OOSet was not working with weightedIntersection function in the catalog's _indexedResults method.



--- Updated File UnIndex.py in package Zope2 --
--- UnIndex.py	2001/03/05 00:18:44	1.23.2.2.6.8
+++ UnIndex.py	2001/03/11 03:05:51	1.23.2.2.6.9
@@ -98,9 +98,9 @@
 from zLOG import LOG, ERROR
 from types import *
 
-from BTrees.OOBTree import OOBTree, OOSet
+from BTrees.OOBTree import OOBTree
 from BTrees.IOBTree import IOBTree
-from BTrees.IIBTree import IITreeSet, union
+from BTrees.IIBTree import IISet, IITreeSet, union
 import BTrees.Length
 
 import sys
@@ -381,7 +381,7 @@
                     
         if r is None:
             if anyTrue:
-                r=OOSet()
+                r=IISet()
             else:
                 return None