[Erp5-report] r15849 - /erp5/trunk/products/ERP5/Tool/SimulationTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Aug 27 17:19:19 CEST 2007
Author: vincent
Date: Mon Aug 27 17:19:19 2007
New Revision: 15849
URL: http://svn.erp5.org?rev=15849&view=rev
Log:
Move and update outdated comment.
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=15849&r1=15848&r2=15849&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/SimulationTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/SimulationTool.py Mon Aug 27 17:19:19 2007
@@ -355,6 +355,7 @@
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.
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])
@@ -451,7 +452,6 @@
**{'%s.mirror_date' % table: [from_date]}),
operator='AND'))
- # Some columns exists on multiple tables, we have to clear ambiguities
column_value_dict = {}
if resource_uid is not None :
column_value_dict['resource_uid'] = resource_uid
More information about the Erp5-report
mailing list