Commit 6f34ab00 authored by Łukasz Nowak's avatar Łukasz Nowak

- fix typo and not existing variable

 - move logic to python script to avoid code repetition, invoke python script from interaction workflow


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27340 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1eac6784
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>delivery = context\n
delivery_path = delivery.getPath()\n
path_and_method_id = (delivery_path, (\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))\n
after_tag = delivery_path + \'_expand\'\n
tag = delivery_path + \'_updateAppliedRule\'\n
\n
priority = 3\n
\n
activate_kw = { \n
\'tag\': tag,\n
\'priority\': priority,\n
}\n
delivery.activate(\n
after_path_and_method_id=path_and_method_id,\n
after_tag=after_tag,\n
tag=tag,\n
priority=priority,\n
).Delivery_updateAppliedRule(activate_kw=activate_kw)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>context</string>
<string>delivery</string>
<string>_getattr_</string>
<string>delivery_path</string>
<string>path_and_method_id</string>
<string>after_tag</string>
<string>tag</string>
<string>priority</string>
<string>activate_kw</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Delivery_updateSimulation</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -53,25 +53,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>delivery = state_change[\'object\'].getExplanationValue()\n
\n
delivery_path = delivery.getPath()\n
path_and_method_id = (delivery_path, (\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))\n
afer_tag = delivery_path + \'_expand\'\n
tag = delivery_path + \'_updateAppliedRule\'\n
\n
priority = 3\n
\n
activate_kw = { \n
\'tag\': expand_tag,\n
\'priority\': priority,\n
}\n
delivery.activate(\n
after_path_and_method_id=path_and_method_id,\n
after_tag=after_tag,\n
tag=tag,\n
priority=priority,\n
).Delivery_updateAppliedRule(activate_kw=activate_kw)\n
<value> <string>state_change[\'object\'].getExplanationValue().Delivery_updateSimulation()\n
</string> </value>
</item>
<item>
......@@ -111,15 +93,6 @@ delivery.activate(\n
<string>state_change</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>delivery</string>
<string>delivery_path</string>
<string>path_and_method_id</string>
<string>afer_tag</string>
<string>tag</string>
<string>priority</string>
<string>expand_tag</string>
<string>activate_kw</string>
<string>after_tag</string>
</tuple>
</value>
</item>
......
......@@ -53,25 +53,7 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>delivery = state_change[\'object\'].getExplanationValue()\n
\n
delivery_path = delivery.getPath()\n
path_and_method_id = (delivery_path, (\'immediateReindexObject\',\'recursiveImmediateReindexObject\'))\n
afer_tag = delivery_path + \'_expand\'\n
tag = delivery_path + \'_updateAppliedRule\'\n
\n
priority = 3\n
\n
activate_kw = { \n
\'tag\': expand_tag,\n
\'priority\': priority,\n
}\n
delivery.activate(\n
after_path_and_method_id=path_and_method_id,\n
after_tag=after_tag,\n
tag=tag,\n
priority=priority,\n
).Delivery_updateAppliedRule(activate_kw=activate_kw)\n
<value> <string>state_change[\'object\'].Delivery_updateSimulation()\n
</string> </value>
</item>
<item>
......@@ -111,15 +93,6 @@ delivery.activate(\n
<string>state_change</string>
<string>_getattr_</string>
<string>_getitem_</string>
<string>delivery</string>
<string>delivery_path</string>
<string>path_and_method_id</string>
<string>afer_tag</string>
<string>tag</string>
<string>priority</string>
<string>expand_tag</string>
<string>activate_kw</string>
<string>after_tag</string>
</tuple>
</value>
</item>
......
599
\ No newline at end of file
600
\ 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