[Zope-Checkins] CVS: Zope2 - PathIndex.py:1.1.2.14

andreas@serenade.digicool.com andreas@serenade.digicool.com
Mon, 21 May 2001 09:42:50 -0400


Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/PathIndex
In directory serenade:/tmp/cvs-serv13138/PathIndex

Modified Files:
      Tag: ajung-dropin-registry
	PathIndex.py 
Log Message:
fixed handling of empty results



--- Updated File PathIndex.py in package Zope2 --
--- PathIndex.py	2001/05/21 13:10:13	1.1.2.13
+++ PathIndex.py	2001/05/21 13:42:50	1.1.2.14
@@ -360,13 +360,10 @@
 
         for k in keys:
 
-#            if k[0]=="/": level = 0
-
             rows = self.search(k,level)
             res = set_func(res,rows)
-
 
-        if len(res)>0:   
+        if res:
             return res, (self.id,)
         else: 
             return None