[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/PathIndex - PathIndex.py:1.14

Andreas Jung andreas@zope.com
Mon, 26 Nov 2001 14:01:37 -0500


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

Modified Files:
	PathIndex.py 
Log Message:
fixed IISet() problem with complex queries ([] could not be used
as argument for intersection())


=== Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py 1.13 => 1.14 ===
                 comp = comps[i]
 
-                if not self._index.has_key(comp): return []
-                if not self._index[comp].has_key(level+i): return []
+                if not self._index.has_key(comp): return IISet()
+                if not self._index[comp].has_key(level+i): return IISet()
 
                 results.append( self._index[comp][level+i] )
 
@@ -295,7 +295,7 @@
 
         else:
 
-            results = None
+            results = IISet()
 
             for level in range(0,self._depth):