Commit cefc3944 authored by Rafael Monnerat's avatar Rafael Monnerat

Use ERP5Type.Log instead Base.log

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23957 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d2bbe1a2
......@@ -53,19 +53,13 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>DEBUG = 1\n
LOG = lambda msg:context.log(script.getId(), msg)\n
\n
kw[\'parent_specialise_portal_type\'] = \'Tax Rule\'\n
<value> <string>kw[\'parent_specialise_portal_type\'] = \'Tax Rule\'\n
#kw[\'explanation_portal_type\'] = [\'Purchase Order\', \'Purchase Invoice Transaction\', \'Purchase Packing List\']\n
kw[\'portal_type\'] = \'Simulation Movement\'\n
kw[\'simulation_state\'] = [\'confirmed\']\n
kw[\'simulation_state\'] = [\'confirmed\' ]\n
\n
kw.update(context.portal_catalog.buildSQLQuery(**kw))\n
\n
if DEBUG :\n
LOG("SQL used = %s"%context.InvoiceTransaction_zSelectMovement(src__=1, **kw))\n
\n
movement_dict = dict()\n
for movement in context.InvoiceTransaction_zSelectMovement(**kw) :\n
movement = movement.getObject()\n
......@@ -79,9 +73,6 @@ movement_list_list = movement_dict.values()\n
if movement_list_list:\n
movement_list = movement_list_list[0]\n
\n
if DEBUG :\n
LOG("selected movement_list : %s" % movement_list)\n
\n
return movement_list\n
</string> </value>
</item>
......@@ -120,8 +111,6 @@ return movement_list\n
<value>
<tuple>
<string>kw</string>
<string>DEBUG</string>
<string>LOG</string>
<string>_write_</string>
<string>_getattr_</string>
<string>_apply_</string>
......
146
\ No newline at end of file
147
\ 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