[Zope-Checkins] CVS: Zope2 - PathIndex.py:1.1.2.9
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Thu, 17 May 2001 07:38:54 -0400
Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/PathIndex
In directory serenade:/tmp/cvs-serv29546/PathIndex
Modified Files:
Tag: ajung-dropin-registry
PathIndex.py
Log Message:
fixed return value for empty result set of _apply_index
--- Updated File PathIndex.py in package Zope2 --
--- PathIndex.py 2001/05/16 19:58:47 1.1.2.8
+++ PathIndex.py 2001/05/17 11:38:53 1.1.2.9
@@ -309,8 +309,11 @@
for r in rows:
res.insert(r)
-
- return res, (self.id,)
+
+ if len(res)>0:
+ return res, (self.id,)
+ else:
+ return None
@@ -323,3 +326,6 @@
def manage_addPathIndex(self, id, REQUEST=None, submit=None):
"""Add a path index"""
return self.manage_addIndex(id, 'PathIndex', REQUEST)
+
+
+