Commit be815f65 authored by Jérome Perrin's avatar Jérome Perrin

remove useless log messages

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7073 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 502926d5
......@@ -66,23 +66,25 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>LOG=lambda msg:context.log("PackingList_buildInvoice", msg)\n
LOG=lambda msg:\'DISABLED\'\n
\n
packing_list = sci.object\n
<value> <string>packing_list = sci[\'object\']\n
delivery_tool = sci.getPortal().portal_deliveries\n
LOG("packing_list : %s"%packing_list.getPath())\n
\n
if hasattr(delivery_tool, \'sale_invoice_builder\') :\n
delivery_tool.sale_invoice_builder.activate(\n
after_method_id = [ \'expand\', \n
\'recursiveImmediateReindexObject\',\n
\'immediateReindexObject\' ],\n
).build()\n
else :\n
context.log("ERP5 Simulation",\n
found = 0\n
builder_id_list = [\'sale_invoice_builder\', \'purchase_invoice_builder\']\n
for builder_id in builder_id_list:\n
if hasattr(delivery_tool, builder_id):\n
found = 1\n
builder = getattr(delivery_tool, builder_id)\n
builder.activate(\n
after_method_id = [ \'expand\', \n
\'recursiveImmediateReindexObject\',\n
\'immediateReindexObject\' ],\n
).build()\n
\n
if not found:\n
packing_list.log("ERP5 Simulation",\n
"Unable to build Invoice from packing list at %s "\\\n
": no sale_invoice_builder" % packing_list.getPath())\n
": no builder" % packing_list.getPath())\n
</string> </value>
</item>
<item>
......@@ -130,12 +132,17 @@ else :\n
<value>
<tuple>
<string>sci</string>
<string>LOG</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>packing_list</string>
<string>_getattr_</string>
<string>delivery_tool</string>
<string>found</string>
<string>builder_id_list</string>
<string>_getiter_</string>
<string>builder_id</string>
<string>hasattr</string>
<string>context</string>
<string>getattr</string>
<string>builder</string>
</tuple>
</value>
</item>
......
......@@ -66,11 +66,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>LOG=lambda msg:context.log("PackingList_updateAppliedRule", msg)\n
LOG=lambda msg:\'DISABLED\'\n
\n
packing_list = state_change.object\n
\n
<value> <string>packing_list = state_change[\'object\']\n
\n
activate_kw = {}\n
related_order = context.getCausalityValue()\n
......@@ -137,10 +133,10 @@ packing_list.activate(\n
<tuple>
<string>state_change</string>
<string>kw</string>
<string>LOG</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>packing_list</string>
<string>activate_kw</string>
<string>_getattr_</string>
<string>context</string>
<string>related_order</string>
<string>after_path_list</string>
......
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