Commit 5c50daf8 authored by Jérome Perrin's avatar Jérome Perrin

Added support for >= and <= ranges.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4523 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 979d7fb7
......@@ -1527,6 +1527,8 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
query_item += ["%s < '%s'" % (key, query_max) ]
elif range_value == 'minmax' :
query_item += ["%s >= '%s' and %s < '%s'" % (key, query_min, key, query_max) ]
elif range_value == 'minngt' :
query_item += ["%s >= '%s' and %s <= '%s'" % (key, query_min, key, query_max) ]
elif range_value == 'ngt' :
query_item += ["%s <= '%s'" % (key, query_max) ]
else :
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment