[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/common - UnIndex.py:1.5
Tres Seaver
tseaver@zope.com
Mon, 22 Oct 2001 21:51:44 -0400
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/common
In directory cvs.zope.org:/tmp/cvs-serv13579/lib/python/Products/PluginIndexes/common
Modified Files:
UnIndex.py
Log Message:
- Test "record-style" parameters (caught typo on 'range', which was
the built-in, rather than the parameter).
- Ensure that queries which mix 'range' and 'operator' for a given index
do the Right Thing (TM) (FieldIndexes ignore 'operator'; KeywordIndexes
ignore 'range').
=== Zope/lib/python/Products/PluginIndexes/common/UnIndex.py 1.4 => 1.5 ===
# Range parameter
- if record.get('range',None):
+ range_parm = record.get('range',None)
+ if range_parm:
opr = "range"
opr_args = []
- if range.find("min")>-1: opr_args.append("min")
- if range.find("max")>-1: opr_args.append("max")
+ if range_parm.find("min")>-1:
+ opr_args.append("min")
+ if range_parm.find("max")>-1:
+ opr_args.append("max")
if record.get('usage',None):