[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/common - UnIndex.py:1.3.4.2

Tres Seaver tseaver@zope.com
Tue, 6 Nov 2001 17:56:11 -0500


Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/common
In directory cvs.zope.org:/tmp/cvs-serv1091/lib/python/Products/PluginIndexes/common

Modified Files:
      Tag: Zope-2_4-branch
	UnIndex.py 
Log Message:


  - Products.PluginIndexes.common.UnIndex: fixed unintended use
    of range built-in (backport from head).


=== Zope/lib/python/Products/PluginIndexes/common/UnIndex.py 1.3.4.1 => 1.3.4.2 ===
 
         # Range parameter
-        if record.get('range',None):
+        range_arg = record.get('range',None)
+        if range_arg is not None:
             opr = "range"
             opr_args = []
-            if range.find("min")>-1:  opr_args.append("min")
-            if range.find("max")>-1:  opr_args.append("max")
+            if range_arg.find("min")>-1:  opr_args.append("min")
+            if range_arg.find("max")>-1:  opr_args.append("max")
 
 
         if record.get('usage',None):