Commit 49393a71 authored by Vincent Pelletier's avatar Vincent Pelletier

Make _generateSQLKeywordDictFromKeywordDict more usable: provide default...

Make _generateSQLKeywordDictFromKeywordDict more usable: provide default values and avoid poluting parameters with internal processing.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15870 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b8895c26
...@@ -364,7 +364,9 @@ class SimulationTool(BaseTool): ...@@ -364,7 +364,9 @@ class SimulationTool(BaseTool):
return self._generateSQLKeywordDictFromKeywordDict(table=table, return self._generateSQLKeywordDictFromKeywordDict(table=table,
sql_kw=sql_kw, new_kw=new_kw) sql_kw=sql_kw, new_kw=new_kw)
def _generateSQLKeywordDictFromKeywordDict(self, table, sql_kw, new_kw): def _generateSQLKeywordDictFromKeywordDict(self, table='stock', sql_kw={}, new_kw={}):
sql_kw = sql_kw.copy()
new_kw = new_kw.copy()
# Some columns cannot be found automatically, prepend table name to # Some columns cannot be found automatically, prepend table name to
# avoid ambiguities. # avoid ambiguities.
# Group-by expression # Group-by expression
......
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