[Erp5-report] r14636 - in /erp5/trunk/bt5/erp5_payroll: SkinTemplateItem/portal_skins/erp5_...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon May 28 17:17:22 CEST 2007
Author: jerome
Date: Mon May 28 17:17:22 2007
New Revision: 14636
URL: http://svn.erp5.org?rev=14636&view=rev
Log:
PaySheetTransaction_selectMovement: do not propagate all **kw to prevent
passing dictionnaries to portal_catalog.buildSQLQuery
Modified:
erp5/trunk/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_selectMovement.xml
erp5/trunk/bt5/erp5_payroll/bt/revision
Modified: erp5/trunk/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_selectMovement.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_selectMovement.xml?rev=14636&r1=14635&r2=14636&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_selectMovement.xml (original)
+++ erp5/trunk/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_selectMovement.xml Mon May 28 17:17:22 2007
@@ -71,15 +71,19 @@
<value> <string>DEBUG = 0\n
LOG = lambda msg:context.log("PaySheetTransaction_selectMovement", msg)\n
\n
-kw[\'parent_specialise_portal_type\'] = \'Invoice Transaction Rule\'\n
-kw[\'explanation_portal_type\'] = [\'Pay Sheet Transaction\',]\n
-kw[\'portal_type\'] = \'Simulation Movement\'\n
-kw[\'grand_parent_simulation_state\'] = [\'confirmed\']\n
+search_kw=dict( \n
+ parent_specialise_portal_type=\'Invoice Transaction Rule\',\n
+ explanation_portal_type=[\'Pay Sheet Transaction\'],\n
+ portal_type=\'Simulation Movement\',\n
+ grand_parent_simulation_state=[\'confirmed\', ])\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
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
movement_list = [] \n
for movement in context.InvoiceTransaction_zSelectMovement(**kw) :\n
@@ -115,7 +119,7 @@
</item>
<item>
<key> <string>_params</string> </key>
- <value> <string>**kw</string> </value>
+ <value> <string>explanation_uid=None, **kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
@@ -135,15 +139,18 @@
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
- <value> <int>0</int> </value>
+ <value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
+ <string>explanation_uid</string>
<string>kw</string>
<string>DEBUG</string>
<string>LOG</string>
+ <string>dict</string>
+ <string>search_kw</string>
<string>_write_</string>
<string>_getattr_</string>
<string>_apply_</string>
@@ -163,7 +170,9 @@
<item>
<key> <string>func_defaults</string> </key>
<value>
- <none/>
+ <tuple>
+ <none/>
+ </tuple>
</value>
</item>
<item>
Modified: erp5/trunk/bt5/erp5_payroll/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_payroll/bt/revision?rev=14636&r1=14635&r2=14636&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_payroll/bt/revision (original)
+++ erp5/trunk/bt5/erp5_payroll/bt/revision Mon May 28 17:17:22 2007
@@ -1,1 +1,1 @@
-154
+155
More information about the Erp5-report
mailing list