Commit c2a686ef authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_core: update to follow changes made to comparaison functions

parent 677d345a
...@@ -15,11 +15,6 @@ def sorted(seq): ...@@ -15,11 +15,6 @@ def sorted(seq):
# Note that we don't use queries, because we want to let the catalog filter out # Note that we don't use queries, because we want to let the catalog filter out
# ignored parameters by itself. # ignored parameters by itself.
usage_map = dict(min='>=',
max='<',
ngt='<=',
nlt='>',)
new_mapping = dict(ignore_hide_rows=1) new_mapping = dict(ignore_hide_rows=1)
query_list = [] query_list = []
left_join_list = [] left_join_list = []
...@@ -52,7 +47,7 @@ for key in sorted(request.form.keys()): ...@@ -52,7 +47,7 @@ for key in sorted(request.form.keys()):
# TODO: this is a quick and dirty implementation of what should be done by # TODO: this is a quick and dirty implementation of what should be done by
# Query.asSearchTextExpression. Instead of keeping '%s_value_' and '%s_usage_', # Query.asSearchTextExpression. Instead of keeping '%s_value_' and '%s_usage_',
# we'll simply keep the query. # we'll simply keep the query.
new_mapping[real_key] = '%s %s' % (usage_map[value], new_mapping[real_key]) new_mapping[real_key] = '%s %s' % (value, new_mapping[real_key])
else: else:
if request.form.get('%s_is_excluded_' % key): if request.form.get('%s_is_excluded_' % key):
......
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