Commit 5902dc95 authored by Jérome Perrin's avatar Jérome Perrin

PaySheetTransaction_selectMovement: do not propagate all **kw to prevent

passing dictionnaries to portal_catalog.buildSQLQuery



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14636 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e19161d1
...@@ -71,15 +71,19 @@ ...@@ -71,15 +71,19 @@
<value> <string>DEBUG = 0\n <value> <string>DEBUG = 0\n
LOG = lambda msg:context.log("PaySheetTransaction_selectMovement", msg)\n LOG = lambda msg:context.log("PaySheetTransaction_selectMovement", msg)\n
\n \n
kw[\'parent_specialise_portal_type\'] = \'Invoice Transaction Rule\'\n search_kw=dict( \n
kw[\'explanation_portal_type\'] = [\'Pay Sheet Transaction\',]\n parent_specialise_portal_type=\'Invoice Transaction Rule\',\n
kw[\'portal_type\'] = \'Simulation Movement\'\n explanation_portal_type=[\'Pay Sheet Transaction\'],\n
kw[\'grand_parent_simulation_state\'] = [\'confirmed\']\n portal_type=\'Simulation Movement\',\n
grand_parent_simulation_state=[\'confirmed\', ])\n
\n \n
kw.update(context.portal_catalog.buildSQLQuery(**kw))\n if explanation_uid:\n
search_kw[\'explanation_uid\'] = explanation_uid\n
\n
kw.update(context.portal_catalog.buildSQLQuery(**search_kw))\n
\n \n
if DEBUG :\n if DEBUG :\n
LOG("SQL used = %s"%context.InvoiceTransaction_zSelectMovement(src__=1, **kw))\n LOG("SQL used (for %s) = %s" % (kw, context.InvoiceTransaction_zSelectMovement(src__=1, **kw)))\n
\n \n
movement_list = [] \n movement_list = [] \n
for movement in context.InvoiceTransaction_zSelectMovement(**kw) :\n for movement in context.InvoiceTransaction_zSelectMovement(**kw) :\n
...@@ -115,7 +119,7 @@ return movement_list\n ...@@ -115,7 +119,7 @@ return movement_list\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>**kw</string> </value> <value> <string>explanation_uid=None, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -135,15 +139,18 @@ return movement_list\n ...@@ -135,15 +139,18 @@ return movement_list\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>explanation_uid</string>
<string>kw</string> <string>kw</string>
<string>DEBUG</string> <string>DEBUG</string>
<string>LOG</string> <string>LOG</string>
<string>dict</string>
<string>search_kw</string>
<string>_write_</string> <string>_write_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>_apply_</string> <string>_apply_</string>
...@@ -163,7 +170,9 @@ return movement_list\n ...@@ -163,7 +170,9 @@ return movement_list\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<none/>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
154 155
\ No newline at end of file \ No newline at end of file
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