[Erp5-report] r24945 - /erp5/trunk/products/ERP5/Tool/SimulationTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Dec 19 11:33:47 CET 2008
Author: vincent
Date: Fri Dec 19 11:33:45 2008
New Revision: 24945
URL: http://svn.erp5.org?rev=24945&view=rev
Log:
Use a dict-type value instead of manually rendering time as a string (the only purpose was to prepend a comparison operator).
Modified:
erp5/trunk/products/ERP5/Tool/SimulationTool.py
Modified: erp5/trunk/products/ERP5/Tool/SimulationTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/SimulationTool.py?rev=24945&r1=24944&r2=24945&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/SimulationTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/SimulationTool.py [utf8] Fri Dec 19 11:33:45 2008
@@ -1048,7 +1048,7 @@
# 'Use explicitly Universal' otherwise DateTime
# search key will convert it to UTC one more time
Query(**{'%s.date' % (GREATER_THAN_DATE_TABLE_ID, ): \
- '>%s Universal' % (date.ISO(), )}),
+ {'query': '%s Universal' % (date.ISO(), ), 'range': 'nlt'}}),
operator='AND'))
assert len(equal_date_query_list) == \
len(greater_than_date_query_list)
More information about the Erp5-report
mailing list