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

Andreas Jung andreas@digicool.com
Tue, 24 Sep 2002 07:03:25 -0400


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

Modified Files:
	PathIndex.py 
Log Message:
Collector #593: fix for the fix: we must return an IISet() instance
instead of the complete IOBTree


=== Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py 1.25 => 1.26 ===
--- Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py:1.25	Wed Aug 14 18:19:31 2002
+++ Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py	Tue Sep 24 07:03:24 2002
@@ -190,8 +190,8 @@
         relative URL or a part of a relative URL or
         a tuple (path,level).
 
-        level>=0  starts searching at the given level
-        level<0   not implemented yet
+        level >= 0  starts searching at the given level
+        level <  0  not implemented yet
         """
 
         if isinstance(path,StringType):
@@ -202,8 +202,10 @@
 
         comps = self.splitPath(path)
 
+        if len(comps) == 0:
+            return IISet(self._unindex.keys())
 
-        if level >=0:
+        if level >= 0:
 
             results = []
             for i in range(len(comps)):