Commit 0121ae14 authored by Jérome Perrin's avatar Jérome Perrin

fix all the Warnings from CMFActivity unable to recognize value for after_path_and_method_id: None

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44248 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 38d27ef4
...@@ -53,13 +53,15 @@ ...@@ -53,13 +53,15 @@
<value> <string>object = state_change[\'object\']\n <value> <string>object = state_change[\'object\']\n
delivery = object.getExplanationValue()\n delivery = object.getExplanationValue()\n
\n \n
activate_kw = dict()\n
if getattr(delivery, \'calculatePacking\', None) is not None:\n if getattr(delivery, \'calculatePacking\', None) is not None:\n
try:\n try:\n
container = object.getContainerValue()\n container = object.getContainerValue()\n
path_and_method_id = container.getPath(), \'recursiveImmediateReindexObject\'\n activate_kw[\'path_and_method_id\'] = (container.getPath(),\n
\'recursiveImmediateReindexObject\')\n
except AttributeError:\n except AttributeError:\n
path_and_method_id = None\n pass\n
delivery.activate(after_path_and_method_id=path_and_method_id).calculatePacking()\n delivery.activate(**activate_kw).calculatePacking()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
1109 1110
\ 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