Commit a65803b0 authored by Vincent Pelletier's avatar Vincent Pelletier

Add comments. This method will grow, and they will become usefull.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15865 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 76cd0a27
......@@ -367,10 +367,12 @@ class SimulationTool(BaseTool):
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment