[Erp5-report] r15850 - /erp5/trunk/products/ERP5/Tool/SimulationTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Aug 27 17:20:22 CEST 2007
Author: vincent
Date: Mon Aug 27 17:20:22 2007
New Revision: 15850
URL: http://svn.erp5.org?rev=15850&view=rev
Log:
Word-wrap some too long lines.
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=15850&r1=15849&r2=15850&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/SimulationTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/SimulationTool.py Mon Aug 27 17:20:22 2007
@@ -352,13 +352,16 @@
def _generateSQLKeywordDict(self, table='stock', **kw):
sql_kw, new_kw = self._generateKeywordDict(table=table, **kw)
- return self._generateSQLKeywordDictFromKeywordDict(table=table, sql_kw=sql_kw, new_kw=new_kw)
+ return self._generateSQLKeywordDictFromKeywordDict(table=table,
+ sql_kw=sql_kw, new_kw=new_kw)
def _generateSQLKeywordDictFromKeywordDict(self, table, sql_kw, new_kw):
- # Some columns cannot be found automatically, prepend table name to avoid ambiguities.
+ # Some columns cannot be found automatically, prepend table name to
+ # avoid ambiguities.
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])
+ new_kw['group_by_expression'] = ', '.join(['%s.%s' % (table, x) \
+ for x in group_by])
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