Commit 95551c0e authored by Vincent Pelletier's avatar Vincent Pelletier

A DefaultKey only needs value to be rendered by operator, without any...

A DefaultKey only needs value to be rendered by operator, without any operator-specific de-processing.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27683 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 726d7a41
......@@ -52,6 +52,9 @@ class DefaultKey(SearchKey):
operator = SearchKey._guessComparisonOperator(self, value)
return operator
def _renderValueAsSearchText(self, value, operator):
return operator.asSearchText(value)
def buildSearchTextExpression(self, operator, value, column=None):
operator_text = operator.getOperator()
if column is None:
......
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