Commit 49fcbd69 authored by Vincent Pelletier's avatar Vincent Pelletier

Allow specifying natural operators as range.

They are much easier to understand than ngt, max, etc.
There is no replacement for minngt and minmax at this time, though.
parent 2788146d
......@@ -243,7 +243,9 @@ class SearchKey(object):
LOG('SearchKey', 100,
'"range" and "operator" are mutualy exclusive, ignoring '\
'operator: %r' % (search_value, ))
if value_range in single_operator_dict:
if value_range in operator_list:
comparison_operator = value_range
elif value_range in single_operator_dict:
comparison_operator = single_operator_dict[value_range]
elif value_range in dual_operator_dict:
if not isinstance(actual_value, (tuple, list)):
......
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