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

Andreas Jung andreas@digicool.com
Mon, 23 Sep 2002 12:43:35 -0400


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

Modified Files:
      Tag: Zope-2_5-branch
	PathIndex.py 
Log Message:
      - Collector #583: Searching for '/' with PathIndexes failed.


=== Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py 1.15.16.2 => 1.15.16.3 ===
--- Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py:1.15.16.2	Thu Apr 11 15:27:10 2002
+++ Zope/lib/python/Products/PluginIndexes/PathIndex/PathIndex.py	Mon Sep 23 12:43:34 2002
@@ -204,7 +204,9 @@
             path  = path[0]
 
         comps = self.splitPath(path)
-        
+
+        if len(comps) == 0: 
+            return self._unindex        
 
         if level >=0: