[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/common - util.py:1.6.8.1
Shane Hathaway
shane@digicool.com
Thu, 9 Aug 2001 13:34:06 -0400
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/common
In directory cvs.zope.org:/tmp/cvs-serv29115/lib/python/Products/PluginIndexes/common
Modified Files:
Tag: NR-branch
util.py
Log Message:
Sync NR-branch with trunk. Sorry about so many checkin messages...
=== Zope/lib/python/Products/PluginIndexes/common/util.py 1.6 => 1.6.8.1 ===
setattr(self, op, request[field])
- if keys is not None:
- # Filter out empty strings.
- keys = filter(lambda key: key != '', keys)
+ # This was some kind of over-optimimization and broke
+ # queries with ("",) to search for empty fields
+ # (See Collector 2423)
+
+# if keys is not None:
+# # Filter out empty strings.
+# keys = filter(lambda key: key != '', keys)
+
if not keys:
keys = None
@@ -219,7 +224,7 @@
def test():
- r = parseIndexRequest({'path':{'query':"xxxx","level":2,"operator":'and'}},'path',['query',"level","operator"])
+ r = parseIndexRequest({'path':{'query':"","level":2,"operator":'and'}},'path',['query',"level","operator"])
for k in dir(r):
print k,getattr(r,k)