[Erp5-report] r15865 - /erp5/trunk/products/ERP5/Tool/SimulationTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Aug 28 11:42:50 CEST 2007
Author: vincent
Date: Tue Aug 28 11:42:50 2007
New Revision: 15865
URL: http://svn.erp5.org?rev=15865&view=rev
Log:
Add comments. This method will grow, and they will become usefull.
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=15865&r1=15864&r2=15865&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/SimulationTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/SimulationTool.py Tue Aug 28 11:42:50 2007
@@ -367,10 +367,12 @@
def _generateSQLKeywordDictFromKeywordDict(self, table, sql_kw, new_kw):
# Some columns cannot be found automatically, prepend table name to
# avoid ambiguities.
+ # Group-by expression
group_by = new_kw.pop('group_by', [])
if len(group_by):
new_kw['group_by_expression'] = ', '.join(['%s.%s' % (table, x) \
for x in group_by])
+ # Column values
column_value_dict = new_kw.pop('column_value_dict', {})
for key, value in column_value_dict.iteritems():
new_kw['%s.%s' % (table, key)] = value
More information about the Erp5-report
mailing list