[Zope-dev] [Bug&Patch] "range" searches for "FieldIndexes" fail

Dieter Maurer dieter@handshake.de
Thu, 27 Sep 2001 23:51:33 +0200 (CEST)


--0ULp2EtuqQ
Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit

.... affected "Zope 2.4.1 and Zope CVS (from about 1 1/2 weeks ago).

Patch attached.

Dieter


--0ULp2EtuqQ
Content-Type: text/plain
Content-Description: Patch
Content-Disposition: inline;
	filename="range.pat"
Content-Transfer-Encoding: 7bit

--- PluginIndexes/common/UnIndex.py~	Fri Jun  1 20:53:40 2001
+++ PluginIndexes/common/UnIndex.py	Thu Sep 27 19:09:30 2001
@@ -399,6 +399,7 @@
         if record.get('range',None):
             opr = "range"
             opr_args = []
+            range= record.get('range')
             if range.find("min")>-1:  opr_args.append("min")
             if range.find("max")>-1:  opr_args.append("max")
 

--0ULp2EtuqQ--