[Erp5-report] r26482 - /erp5/trunk/products/ZSQLCatalog/SearchKey/DateTimeKey.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Apr 17 17:01:17 CEST 2009


Author: vincent
Date: Fri Apr 17 17:01:14 2009
New Revision: 26482

URL: http://svn.erp5.org?rev=26482&view=rev
Log:
Allow DateTimeKey to parse its value, to make it easier to use from Listboxes.

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

Modified: erp5/trunk/products/ZSQLCatalog/SearchKey/DateTimeKey.py
URL: http://svn.erp5.org/erp5/trunk/products/ZSQLCatalog/SearchKey/DateTimeKey.py?rev=26482&r1=26481&r2=26482&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/SearchKey/DateTimeKey.py [utf8] (original)
+++ erp5/trunk/products/ZSQLCatalog/SearchKey/DateTimeKey.py [utf8] Fri Apr 17 17:01:14 2009
@@ -38,6 +38,7 @@
 from Products.ZSQLCatalog.Interface.ISearchKey import ISearchKey
 from Interface.Verify import verifyClass
 from Products.ZSQLCatalog.SQLCatalog import profiler_decorator
+from Products.ZSQLCatalog.SearchText import parse
 
 MARKER = []
 
@@ -242,6 +243,9 @@
   default_comparison_operator = None
   get_operator_from_value = True
 
+  def parseSearchText(self, value, is_column):
+    return parse(value, is_column)
+
   def _renderValueAsSearchText(self, value, operator):
     return '"%s"' % (DateTime(value).ISO(), )
 




More information about the Erp5-report mailing list