[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/PathIndex - PathIndex.py:1.25.4.1
Chris McDonough
chrism@zope.com
Sat, 28 Sep 2002 21:41:04 -0400
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/PathIndex
In directory cvs.zope.org:/tmp/cvs-serv16902/lib/python/Products/PluginIndexes/PathIndex
Modified Files:
Tag: chrism-install-branch
PathIndex.py
Log Message:
Merge chrism-install-branch with head. Apologies for the spew.
=== Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py 1.25 => 1.25.4.1 ===
--- 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 Sat Sep 28 21:40:33 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)):