Commit 677d345a authored by Nicolas Wavrant's avatar Nicolas Wavrant

Directly use comparaison symbol instead of function name

As the symbol is easier to understand.
Also, update the name of the functions, as the notion of "or equals"
doesn't appear currently.
parent 595677df
...@@ -142,11 +142,11 @@ def getSearchDialog(self, REQUEST=None): ...@@ -142,11 +142,11 @@ def getSearchDialog(self, REQUEST=None):
title=translateString('${key} ${usage}', title=translateString('${key} ${usage}',
mapping=dict(key=translateString(column_title), mapping=dict(key=translateString(column_title),
usage=translateString('Usage'))), usage=translateString('Usage'))),
items=[(translateString('Equals To'), ''), items=[(translateString('Equal to'), ''),
(translateString('Greater Than'), 'min'), (translateString('Greater than'), '>'),
(translateString('Less Than'),'max'), (translateString('Less than'), '<'),
(translateString('Not Greater Than'), 'ngt'), (translateString('Greater than or Equal to'), '>='),
(translateString('Not Less Than'), 'nlt'), (translateString('Less than or Equal to'), '<='),
]), ]),
['title', 'items']) ['title', 'items'])
...@@ -179,11 +179,11 @@ def getSearchDialog(self, REQUEST=None): ...@@ -179,11 +179,11 @@ def getSearchDialog(self, REQUEST=None):
form_id='Base_viewDialogFieldLibrary', form_id='Base_viewDialogFieldLibrary',
field_id='your_category')) field_id='your_category'))
field._surcharged_edit(dict(title=translateString('${key} ${usage}', mapping=dict(key=translateString(column_title), usage=translateString('Usage'))), field._surcharged_edit(dict(title=translateString('${key} ${usage}', mapping=dict(key=translateString(column_title), usage=translateString('Usage'))),
items=[(translateString('Equals To'), ''), items=[(translateString('Equal to'), ''),
(translateString('Greater Than'), 'min'), (translateString('Greater than'), '>'),
(translateString('Less Than'),'max'), (translateString('Less than'), '<'),
(translateString('Not Greater Than'), 'ngt'), (translateString('Greater than or Equal to'), '>='),
(translateString('Not Less Than'), 'nlt'), (translateString('Less than or Equal to'), '<='),
]), ]),
['title', 'items']) ['title', 'items'])
......
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