[Erp5-report] r27683 - /erp5/trunk/products/ZSQLCatalog/SearchKey/DefaultKey.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jun 19 14:47:56 CEST 2009


Author: vincent
Date: Fri Jun 19 14:47:55 2009
New Revision: 27683

URL: http://svn.erp5.org?rev=27683&view=rev
Log:
A DefaultKey only needs value to be rendered by operator, without any operator-specific de-processing.

Modified:
    erp5/trunk/products/ZSQLCatalog/SearchKey/DefaultKey.py

Modified: erp5/trunk/products/ZSQLCatalog/SearchKey/DefaultKey.py
URL: http://svn.erp5.org/erp5/trunk/products/ZSQLCatalog/SearchKey/DefaultKey.py?rev=27683&r1=27682&r2=27683&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/SearchKey/DefaultKey.py [utf8] (original)
+++ erp5/trunk/products/ZSQLCatalog/SearchKey/DefaultKey.py [utf8] Fri Jun 19 14:47:55 2009
@@ -52,6 +52,9 @@
       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:




More information about the Erp5-report mailing list