[Erp5-report] r27682 - /erp5/trunk/products/ZSQLCatalog/SearchKey/DefaultKey.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jun 19 14:27:49 CEST 2009
Author: vincent
Date: Fri Jun 19 14:27:45 2009
New Revision: 27682
URL: http://svn.erp5.org?rev=27682&view=rev
Log:
Use _renderValueAsSearchText to render value using operator (adds quotes, etc) instead of used the value directly.
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=27682&r1=27681&r2=27682&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/SearchKey/DefaultKey.py [utf8] (original)
+++ erp5/trunk/products/ZSQLCatalog/SearchKey/DefaultKey.py [utf8] Fri Jun 19 14:27:45 2009
@@ -59,7 +59,7 @@
if operator_text == 'like':
assert isinstance(value, basestring)
assert '%' in value
- result = value
+ result = self._renderValueAsSearchText(value, operator)
if len(column):
result = '%s:%s' % (column, result)
else:
More information about the Erp5-report
mailing list