[Checkins] SVN: zope.index/trunk/ Don't modify given query dictionary in the KeywordIndex.apply method.
Dan Korostelev
nadako at gmail.com
Wed Feb 25 13:58:12 EST 2009
Log message for revision 97272:
Don't modify given query dictionary in the KeywordIndex.apply method.
Changed:
U zope.index/trunk/CHANGES.txt
U zope.index/trunk/src/zope/index/keyword/index.py
-=-
Modified: zope.index/trunk/CHANGES.txt
===================================================================
--- zope.index/trunk/CHANGES.txt 2009-02-25 18:16:51 UTC (rev 97271)
+++ zope.index/trunk/CHANGES.txt 2009-02-25 18:58:12 UTC (rev 97272)
@@ -13,6 +13,8 @@
Zope2 text index. This improves deletion performance by
several orders of magnitude.
+- Don't modify given query dictionary in the KeywordIndex.apply method.
+
3.5.0 (2008-12-30)
------------------
Modified: zope.index/trunk/src/zope/index/keyword/index.py
===================================================================
--- zope.index/trunk/src/zope/index/keyword/index.py 2009-02-25 18:16:51 UTC (rev 97271)
+++ zope.index/trunk/src/zope/index/keyword/index.py 2009-02-25 18:58:12 UTC (rev 97272)
@@ -168,7 +168,7 @@
operator = 'and'
if isinstance(query, dict):
if 'operator' in query:
- operator = query.pop('operator')
+ operator = query['operator']
query = query['query']
return self.search(query, operator=operator)
More information about the Checkins
mailing list