Commit 3c6b3500 authored by Nicolas Delaby's avatar Nicolas Delaby

2007-10-11 Nicolas

Update Workflows, not using edit transition anymore

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16952 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f8ecf07a
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -68,7 +65,7 @@ ...@@ -68,7 +65,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>context.activate(activate_kw={\'tag\':\'\',\'after_tag\':\'build_amortisation_transaction\'}).AmortisationTransaction_afterBuild(**kw)\n <value> <string>context.activate(activate_kw={\'tag\':\'after_amortisation_build\',\'after_tag\':\'build_amortisation_transaction\'}).AmortisationTransaction_afterBuild(**kw)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -95,13 +92,13 @@ for movement in context.getMovementList():\n ...@@ -95,13 +92,13 @@ for movement in context.getMovementList():\n
for simulation_movement in simulation_movement_list:\n for simulation_movement in simulation_movement_list:\n
simulation_movement.edit(delivery_ratio=1, activate_kw={\'tag\':\'after_amortisation_build\'})\n simulation_movement.edit(delivery_ratio=1, activate_kw={\'tag\':\'after_amortisation_build\'})\n
\n \n
context.edit(causality_value_list = causality_value_list)\n if context.getSimulationState() in context.getPortalUpdatableAmortisationTransactionStateList():\n
\n context.edit(causality_value_list=causality_value_list)\n
# Update causality state\n # Update causality state\n
#Test Add by Nicolas\n #Test Add by Nicolas\n
if hasattr(context, \'startBuilding\'):\n if getattr(context, \'startBuilding\', None) is not None:\n
context.startBuilding()\n context.startBuilding()\n
context.activate(after_tag=\'after_amortisation_build\').updateCausalityState()\n context.activate(after_tag=\'after_amortisation_build\').updateCausalityState()\n
]]></string> </value> ]]></string> </value>
...@@ -166,7 +163,9 @@ context.activate(after_tag=\'after_amortisation_build\').updateCausalityState()\ ...@@ -166,7 +163,9 @@ context.activate(after_tag=\'after_amortisation_build\').updateCausalityState()\
<string>_getitem_</string> <string>_getitem_</string>
<string>item</string> <string>item</string>
<string>total_quantity</string> <string>total_quantity</string>
<string>hasattr</string> <string>_inplacevar_</string>
<string>getattr</string>
<string>None</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -70,7 +67,7 @@ ...@@ -70,7 +67,7 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>item_list = []\n <value> <string>item_list = []\n
movement_list = context.getImmobilisationMovementList()\n movement_list = context.getImmobilisationMovementList()\n
#context.log(\'movement_list\',[(m.getUid(),m.getPath()) for m in movement_list])\n #context.log(\'movement_list %s\' % context.getRelativeUrl(),[m.getPath() for m in movement_list])\n
movemement_path_list = []\n movemement_path_list = []\n
for movement in movement_list:\n for movement in movement_list:\n
movemement_path_list.append(movement.getPath())\n movemement_path_list.append(movement.getPath())\n
...@@ -78,7 +75,7 @@ for movement in movement_list:\n ...@@ -78,7 +75,7 @@ for movement in movement_list:\n
if item not in item_list:\n if item not in item_list:\n
item_list.append(item)\n item_list.append(item)\n
for item in item_list:\n for item in item_list:\n
item.activate(after_path_and_method_id=(movemement_path_list,\'updateImmobilisationState\')).expandAmortisation()\n item.activate(tag=\'expand_amortisation\', after_path_and_method_id=(movemement_path_list, \'updateImmobilisationState\', )).expandAmortisation()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="DCWorkflowDefinition" module="Products.DCWorkflow.DCWorkflow"/>
<string>Products.DCWorkflow.DCWorkflow</string> <tuple/>
<string>DCWorkflowDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Scripts" module="Products.DCWorkflow.Scripts"/>
<string>Products.DCWorkflow.Scripts</string> <tuple/>
<string>Scripts</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -129,8 +126,9 @@ transaction.activate().updateCausalityState()\n ...@@ -129,8 +126,9 @@ transaction.activate().updateCausalityState()\n
<value> <value>
<tuple> <tuple>
<string>state_change</string> <string>state_change</string>
<string>_getattr_</string> <string>_getitem_</string>
<string>transaction</string> <string>transaction</string>
<string>_getattr_</string>
<string>context</string> <string>context</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>movement</string> <string>movement</string>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -133,8 +130,9 @@ transaction.activate().updateCausalityState()\n ...@@ -133,8 +130,9 @@ transaction.activate().updateCausalityState()\n
<value> <value>
<tuple> <tuple>
<string>state_change</string> <string>state_change</string>
<string>_getattr_</string> <string>_getitem_</string>
<string>transaction</string> <string>transaction</string>
<string>_getattr_</string>
<string>movement_list</string> <string>movement_list</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>movement</string> <string>movement</string>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -131,8 +128,9 @@ packing_list.activate().updateCausalityState()\n ...@@ -131,8 +128,9 @@ packing_list.activate().updateCausalityState()\n
<value> <value>
<tuple> <tuple>
<string>state_change</string> <string>state_change</string>
<string>_getattr_</string> <string>_getitem_</string>
<string>packing_list</string> <string>packing_list</string>
<string>_getattr_</string>
<string>None</string> <string>None</string>
</tuple> </tuple>
</value> </value>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -137,8 +134,9 @@ packing_list.activate().updateCausalityState()\n ...@@ -137,8 +134,9 @@ packing_list.activate().updateCausalityState()\n
<value> <value>
<tuple> <tuple>
<string>state_change</string> <string>state_change</string>
<string>_getattr_</string> <string>_getitem_</string>
<string>packing_list</string> <string>packing_list</string>
<string>_getattr_</string>
<string>packing_list_portal_type</string> <string>packing_list_portal_type</string>
<string>delivery_builder</string> <string>delivery_builder</string>
<string>packing_list_relative_url</string> <string>packing_list_relative_url</string>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="States" module="Products.DCWorkflow.States"/>
<string>Products.DCWorkflow.States</string> <tuple/>
<string>States</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="StateDefinition" module="Products.DCWorkflow.States"/>
<string>Products.DCWorkflow.States</string> <tuple/>
<string>StateDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="StateDefinition" module="Products.DCWorkflow.States"/>
<string>Products.DCWorkflow.States</string> <tuple/>
<string>StateDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="StateDefinition" module="Products.DCWorkflow.States"/>
<string>Products.DCWorkflow.States</string> <tuple/>
<string>StateDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="StateDefinition" module="Products.DCWorkflow.States"/>
<string>Products.DCWorkflow.States</string> <tuple/>
<string>StateDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Transitions" module="Products.DCWorkflow.Transitions"/>
<string>Products.DCWorkflow.Transitions</string> <tuple/>
<string>Transitions</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
<string>Products.DCWorkflow.Transitions</string> <tuple/>
<string>TransitionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
<string>Products.DCWorkflow.Transitions</string> <tuple/>
<string>TransitionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
<string>Products.DCWorkflow.Transitions</string> <tuple/>
<string>TransitionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
<string>Products.DCWorkflow.Transitions</string> <tuple/>
<string>TransitionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
<string>Products.DCWorkflow.Transitions</string> <tuple/>
<string>TransitionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
<string>Products.DCWorkflow.Transitions</string> <tuple/>
<string>TransitionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
<string>Products.DCWorkflow.Transitions</string> <tuple/>
<string>TransitionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Variables" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>Variables</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Worklists" module="Products.DCWorkflow.Worklists"/>
<string>Products.DCWorkflow.Worklists</string> <tuple/>
<string>Worklists</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="WorklistDefinition" module="Products.DCWorkflow.Worklists"/>
<string>Products.DCWorkflow.Worklists</string> <tuple/>
<string>WorklistDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="InteractionWorkflowDefinition" module="Products.ERP5.InteractionWorkflow"/>
<string>Products.ERP5.InteractionWorkflow</string> <tuple/>
<string>InteractionWorkflowDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Interaction" module="Products.ERP5.Interaction"/>
<string>Products.ERP5.Interaction</string> <tuple/>
<string>Interaction</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
<string>Products.ERP5.Interaction</string> <tuple/>
<string>InteractionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
<string>Products.ERP5.Interaction</string> <tuple/>
<string>InteractionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
<string>Products.ERP5.Interaction</string> <tuple/>
<string>InteractionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Scripts" module="Products.DCWorkflow.Scripts"/>
<string>Products.DCWorkflow.Scripts</string> <tuple/>
<string>Scripts</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -70,7 +67,8 @@ ...@@ -70,7 +67,8 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>object = state_change[\'object\']\n <value> <string>object = state_change[\'object\']\n
#object.log(\'propaging edit on delivery\', object.getRootDeliveryValue().getRelativeUrl())\n #object.log(\'propaging edit on delivery\', object.getRootDeliveryValue().getRelativeUrl())\n
object.getRootDeliveryValue().edit()\n if getattr(object.getRootDeliveryValue(), \'calculate\', None) is not None:\n
object.getRootDeliveryValue().calculate()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -122,7 +120,9 @@ object.getRootDeliveryValue().edit()\n ...@@ -122,7 +120,9 @@ object.getRootDeliveryValue().edit()\n
<string>state_change</string> <string>state_change</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>object</string> <string>object</string>
<string>getattr</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>None</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Variables" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>Variables</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Worklists" module="Products.DCWorkflow.Worklists"/>
<string>Products.DCWorkflow.Worklists</string> <tuple/>
<string>Worklists</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="DCWorkflowDefinition" module="Products.DCWorkflow.DCWorkflow"/>
<string>Products.DCWorkflow.DCWorkflow</string> <tuple/>
<string>DCWorkflowDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Scripts" module="Products.DCWorkflow.Scripts"/>
<string>Products.DCWorkflow.Scripts</string> <tuple/>
<string>Scripts</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="States" module="Products.DCWorkflow.States"/>
<string>Products.DCWorkflow.States</string> <tuple/>
<string>States</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="StateDefinition" module="Products.DCWorkflow.States"/>
<string>Products.DCWorkflow.States</string> <tuple/>
<string>StateDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Transitions" module="Products.DCWorkflow.Transitions"/>
<string>Products.DCWorkflow.Transitions</string> <tuple/>
<string>Transitions</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Variables" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>Variables</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Worklists" module="Products.DCWorkflow.Worklists"/>
<string>Products.DCWorkflow.Worklists</string> <tuple/>
<string>Worklists</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="InteractionWorkflowDefinition" module="Products.ERP5.InteractionWorkflow"/>
<string>Products.ERP5.InteractionWorkflow</string> <tuple/>
<string>InteractionWorkflowDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Interaction" module="Products.ERP5.Interaction"/>
<string>Products.ERP5.Interaction</string> <tuple/>
<string>Interaction</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5.Interaction</string>
<string>InteractionDefinition</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>activate_script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value>
<list>
<string>ImmobilisationContent_updateImmobilisationState</string>
</list>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>ImmobilisationContent_paste_and_delete</string> </value>
</item>
<item>
<key> <string>method_id</string> </key>
<value>
<list>
<string>manage_afterAdd</string>
<string>manage_afterClone</string>
<string>manage_beforeDelete</string>
</list>
</value>
</item>
<item>
<key> <string>portal_type_filter</string> </key>
<value>
<list>
<string>Delivery Cell</string>
<string>Immobilisation Line</string>
<string>Internal Packing List Line</string>
<string>Inventory Cell</string>
<string>Inventory Line</string>
<string>Purchase Packing List Cell</string>
<string>Purchase Packing List Line</string>
<string>Reevaluation Packing List Line</string>
<string>Restoration Packing List Line</string>
<string>Sale Packing List Cell</string>
<string>Sale Packing List Line</string>
</list>
</value>
</item>
<item>
<key> <string>script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5.Interaction</string>
<string>InteractionDefinition</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>activate_script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value>
<list>
<string>Immobilisation_updateFutureMovementsImmobilisationState</string>
</list>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Immobilisation_delete</string> </value>
</item>
<item>
<key> <string>method_id</string> </key>
<value>
<list>
<string>manage_beforeDelete</string>
</list>
</value>
</item>
<item>
<key> <string>portal_type_filter</string> </key>
<value>
<list>
<string>Internal Packing List</string>
<string>Purchase Packing List</string>
<string>Reevaluation Packing List</string>
<string>Restoration Packing List</string>
<string>Sale Packing List</string>
</list>
</value>
</item>
<item>
<key> <string>script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5.Interaction</string>
<string>InteractionDefinition</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>activate_script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value>
<list>
<string>Immobilisation_updateImmobilisationState</string>
</list>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Immobilisation_doWorkflowAction</string> </value>
</item>
<item>
<key> <string>method_id</string> </key>
<value>
<list>
<string>set_ready</string>
<string>start</string>
<string>stop</string>
<string>deliver</string>
</list>
</value>
</item>
<item>
<key> <string>portal_type_filter</string> </key>
<value>
<list>
<string>Internal Packing List</string>
<string>Purchase Packing List</string>
<string>Reevaluation Packing List</string>
<string>Restoration Packing List</string>
<string>Sale Packing List</string>
</list>
</value>
</item>
<item>
<key> <string>script_name</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
<string>Products.ERP5.Interaction</string> <tuple/>
<string>InteractionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -46,13 +43,14 @@ ...@@ -46,13 +43,14 @@
<key> <string>after_script_name</string> </key> <key> <string>after_script_name</string> </key>
<value> <value>
<list> <list>
<string>AmortisationTransaction_afterAdd</string> <string>Immobilisation_updateFutureMovementsImmobilisationState</string>
<string>Immobilisation_updateImmobilisationState</string>
</list> </list>
</value> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string>Set to \'building\' causality state once the amortisation building is made</string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>guard</string> </key> <key> <string>guard</string> </key>
...@@ -62,23 +60,25 @@ ...@@ -62,23 +60,25 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>AmortisationTransaction_add</string> </value> <value> <string>Immobilisation_edit</string> </value>
</item> </item>
<item> <item>
<key> <string>method_id</string> </key> <key> <string>method_id</string> </key>
<value> <value>
<list> <list>
<string>manage_afterAdd</string> <string>_set*</string>
<string>manage_afterClone</string> <string>_edit</string>
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>once_per_transaction</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>portal_type_filter</string> </key> <key> <string>portal_type_filter</string> </key>
<value> <value>
<list> <none/>
<string>Amortisation Transaction</string>
</list>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
<string>Products.ERP5.Interaction</string> <tuple/>
<string>InteractionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -39,15 +36,15 @@ ...@@ -39,15 +36,15 @@
<item> <item>
<key> <string>activate_script_name</string> </key> <key> <string>activate_script_name</string> </key>
<value> <value>
<tuple/> <list>
<string>PackingList_expandAmortisationOnAggregateValueList</string>
</list>
</value> </value>
</item> </item>
<item> <item>
<key> <string>after_script_name</string> </key> <key> <string>after_script_name</string> </key>
<value> <value>
<list> <tuple/>
<string>ImmobilisationContent_updateImmobilisationState</string>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -62,29 +59,41 @@ ...@@ -62,29 +59,41 @@
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>ImmobilisationContent_edit</string> </value> <value> <string>Immobilisation_expandAmortisation</string> </value>
</item> </item>
<item> <item>
<key> <string>method_id</string> </key> <key> <string>method_id</string> </key>
<value> <value>
<list> <list>
<string>_edit</string> <string>deliver</string>
<string>stop</string>
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>once_per_transaction</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>portal_type_filter</string> </key> <key> <string>portal_type_filter</string> </key>
<value> <value>
<list> <list>
<string>Delivery Cell</string> <string>Delivery Cell</string>
<string>Immobilisation</string>
<string>Immobilisation Line</string> <string>Immobilisation Line</string>
<string>Internal Packing List</string>
<string>Internal Packing List Line</string> <string>Internal Packing List Line</string>
<string>Inventory</string>
<string>Inventory Cell</string> <string>Inventory Cell</string>
<string>Inventory Line</string> <string>Inventory Line</string>
<string>Purchase Packing List</string>
<string>Purchase Packing List Cell</string> <string>Purchase Packing List Cell</string>
<string>Purchase Packing List Line</string> <string>Purchase Packing List Line</string>
<string>Reevaluation Packing List</string>
<string>Reevaluation Packing List Line</string> <string>Reevaluation Packing List Line</string>
<string>Restoration Packing List</string>
<string>Restoration Packing List Line</string> <string>Restoration Packing List Line</string>
<string>Sale Packing List</string>
<string>Sale Packing List Cell</string> <string>Sale Packing List Cell</string>
<string>Sale Packing List Line</string> <string>Sale Packing List Line</string>
</list> </list>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="InteractionDefinition" module="Products.ERP5.Interaction"/>
<string>Products.ERP5.Interaction</string> <tuple/>
<string>InteractionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -71,21 +68,18 @@ ...@@ -71,21 +68,18 @@
<list> <list>
<string>manage_afterAdd</string> <string>manage_afterAdd</string>
<string>manage_afterClone</string> <string>manage_afterClone</string>
<string>manage_beforeDelete</string>
</list> </list>
</value> </value>
</item> </item>
<item>
<key> <string>once_per_transaction</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>portal_type_filter</string> </key> <key> <string>portal_type_filter</string> </key>
<value> <value>
<list> <none/>
<string>Immobilisation</string>
<string>Internal Packing List</string>
<string>Inventory</string>
<string>Purchase Packing List</string>
<string>Reevaluation Packing List</string>
<string>Restoration Packing List</string>
<string>Sale Packing List</string>
</list>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Scripts" module="Products.DCWorkflow.Scripts"/>
<string>Products.DCWorkflow.Scripts</string> <tuple/>
<string>Scripts</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
<?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>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>movement_content = state_change[\'object\']\n
movement = movement_content.getRootDeliveryValue()\n
if movement.getImmobilisationState() != \'calculating\':\n
movement.calculateImmobilisationValidity()\n
else:\n
movement.updateImmobilisationState()\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple/>
</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>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>state_change</string>
<string>_getitem_</string>
<string>movement_content</string>
<string>_getattr_</string>
<string>movement</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>ImmobilisationContent_updateImmobilisationState</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -65,12 +65,14 @@ ...@@ -65,12 +65,14 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>context = state_change[\'object\']\n <value> <string>pl = state_change[\'object\']\n
\n \n
for movement in context.getAggregatedItemsNextImmobilisationMovementValueList():\n for movement in pl.getRootDeliveryValue().getAggregatedItemsNextImmobilisationMovementValueList():\n
if movement.getImmobilisationState() != \'calculating\':\n if movement.getImmobilisationState() != \'calculating\':\n
movement.calculateImmobilisationValidity()\n movement.calculateImmobilisationValidity()\n
context.ImmobilisationDelivery_expandAggregatedItems()\n else:\n
movement.updateImmobilisationState()\n
pl.ImmobilisationDelivery_expandAggregatedItems()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -128,7 +130,7 @@ context.ImmobilisationDelivery_expandAggregatedItems()\n ...@@ -128,7 +130,7 @@ context.ImmobilisationDelivery_expandAggregatedItems()\n
<string>state_change</string> <string>state_change</string>
<string>kw</string> <string>kw</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>context</string> <string>pl</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>movement</string> <string>movement</string>
......
...@@ -65,12 +65,11 @@ ...@@ -65,12 +65,11 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>immobilisation = state_change[\'object\']\n <value> <string>movement_content = state_change[\'object\']\n
#immobilisation.log(\'immoState\',immobilisation.getImmobilisationState())\n #movement_content.log(movement_content.getRelativeUrl())\n
if immobilisation.getImmobilisationState() != \'calculating\':\n movement = movement_content.getRootDeliveryValue()\n
immobilisation.calculateImmobilisationValidity()\n if movement.getImmobilisationState() != \'calculating\':\n
else:\n movement.calculateImmobilisationValidity()\n
immobilisation.updateImmobilisationState()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -127,8 +126,9 @@ else:\n ...@@ -127,8 +126,9 @@ else:\n
<tuple> <tuple>
<string>state_change</string> <string>state_change</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>immobilisation</string> <string>movement_content</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>movement</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>packing_list_content = state_change[\'object\']\n
\n
# Clean simulation\n
simulation_movement_list = packing_list_content.getDeliveryRelatedValueList(\n
portal_type="Simulation Movement")\n
for simulation_movement in simulation_movement_list:\n
# Simulation movement have to be aggregated on a new Delivery.\n
simulation_movement.setDelivery(None)\n
\n
# packing_list = packing_list_content.getExplanationValue()\n
# packing_list_portal_type = packing_list.getPortalType()\n
# if packing_list_portal_type == \'Sale Packing List\':\n
# delivery_builder = packing_list.portal_deliveries.sale_packing_list_builder\n
# elif packing_list_portal_type == \'Purchase Packing List\':\n
# delivery_builder = packing_list.portal_deliveries.\\\n
# purchase_packing_list_builder\n
# \n
# delivery_builder.build(\n
# movement_relative_url_list=[x.getRelativeUrl() for x in\\\n
# simulation_movement_list],\n
# delivery_relative_url_list=[packing_list.getRelativeUrl()]\n
# )\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change</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>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>state_change</string>
<string>_getitem_</string>
<string>packing_list_content</string>
<string>_getattr_</string>
<string>simulation_movement_list</string>
<string>_getiter_</string>
<string>simulation_movement</string>
<string>None</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>PackingListContent_beforeDelete</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>packing_list_content = state_change[\'object\']\n
if packing_list_content.getSimulationState()!=\'draft\':\n
explanation_value = packing_list_content.getExplanationValue()\n
explanation_value.edit()\n
packing_list_content.activate().PackingListContent_updateAfterEdit()\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change</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>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>state_change</string>
<string>_getitem_</string>
<string>packing_list_content</string>
<string>_getattr_</string>
<string>explanation_value</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>PackingListContent_updatePackingListState</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -65,8 +65,8 @@ ...@@ -65,8 +65,8 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>transaction = state_change[\'object\']\n <value> <string>pl = state_change[\'object\']\n
transaction.log(\'after add on transaction\',transaction)\n pl.getRootDeliveryValue().ImmobilisationDelivery_expandAggregatedItems()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -117,7 +117,7 @@ transaction.log(\'after add on transaction\',transaction)\n ...@@ -117,7 +117,7 @@ transaction.log(\'after add on transaction\',transaction)\n
<tuple> <tuple>
<string>state_change</string> <string>state_change</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>transaction</string> <string>pl</string>
<string>_getattr_</string> <string>_getattr_</string>
</tuple> </tuple>
</value> </value>
...@@ -135,7 +135,7 @@ transaction.log(\'after add on transaction\',transaction)\n ...@@ -135,7 +135,7 @@ transaction.log(\'after add on transaction\',transaction)\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>AmortisationTransaction_afterAdd</string> </value> <value> <string>PackingList_expandAmortisationOnAggregateValueList</string> </value>
</item> </item>
<item> <item>
<key> <string>warnings</string> </key> <key> <string>warnings</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>packing_list = state_change[\'object\']\n
if packing_list.getSimulationState()!=\'draft\':\n
packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImmediateReindexObject\')).updateAppliedRule(rule_id=\'default_delivery_rule\')\n
\n
\n
# XXX Not required, reindex of the applied rule is done in updateAppliedRule\n
#my_applied_rule_list = context.getCausalityRelatedValueList(\\\n
# portal_type=\'Applied Rule\')\n
#for my_applied_rule in my_applied_rule_list:\n
# my_applied_rule.activate(after_method_id=\'expand\',priority=2).recursiveImmediateReindexObject()\n
#\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change, **kw</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Assignor</string>
</tuple>
</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>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>state_change</string>
<string>kw</string>
<string>_getitem_</string>
<string>packing_list</string>
<string>_getattr_</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>PackingList_updateAppliedRule</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>packing_list = state_change[\'object\']\n
packing_list.activate(after_path_and_method_id = (packing_list.getRelativeUrl(),\n
[\'immediateReindexObject\', \'recursiveImmediateReindexObject\', \'updateImmobilisationState\'])\n
).updateImmobilisationState()\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Assignor</string>
</tuple>
</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>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>state_change</string>
<string>_getitem_</string>
<string>packing_list</string>
<string>_getattr_</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>PackingList_updateImmobilisationState</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Variables" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>Variables</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Worklists" module="Products.DCWorkflow.Worklists"/>
<string>Products.DCWorkflow.Worklists</string> <tuple/>
<string>Worklists</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="DCWorkflowDefinition" module="Products.DCWorkflow.DCWorkflow"/>
<string>Products.DCWorkflow.DCWorkflow</string> <tuple/>
<string>DCWorkflowDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Scripts" module="Products.DCWorkflow.Scripts"/>
<string>Products.DCWorkflow.Scripts</string> <tuple/>
<string>Scripts</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -66,17 +66,13 @@ ...@@ -66,17 +66,13 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>pl = state_change[\'object\']\n <value> <string>pl = state_change[\'object\']\n
pl.activate().updateImmobilisationState()\n
\n \n
# It is done before and after because stop_date may have change\n # It is done before and after because stop_date may have change\n
for movement in pl.getAggregatedItemsNextImmobilisationMovementValueList():\n for movement in pl.getAggregatedItemsNextImmobilisationMovementValueList():\n
if movement.getImmobilisationState() != \'calculating\':\n if movement.getImmobilisationState() != \'calculating\':\n
movement.calculateImmobilisationValidity()\n movement.calculateImmobilisationValidity()\n
\n \n
movement_list = pl.getImmobilisationMovementList()\n pl.activate(after_method_id=(\'recursiveReindexObject\', \'immediateReindexObject\',)).updateImmobilisationState()\n
movement_path_list = [x.getPath() for x in movement_list]\n
#pl.log(\'immobilisation_workflow after edit, movement_path_list\',movement_path_list)\n
pl.activate(after_path_and_method_id=(movement_path_list, [\'immediateReindexObject\', \'recursiveImmediateReindexObject\'])).ImmobilisationDelivery_expandAggregatedItems()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -135,14 +131,9 @@ pl.activate(after_path_and_method_id=(movement_path_list, [\'immediateReindexObj ...@@ -135,14 +131,9 @@ pl.activate(after_path_and_method_id=(movement_path_list, [\'immediateReindexObj
<string>kw</string> <string>kw</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>pl</string> <string>pl</string>
<string>_getattr_</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>_getattr_</string>
<string>movement</string> <string>movement</string>
<string>movement_list</string>
<string>append</string>
<string>$append0</string>
<string>x</string>
<string>movement_path_list</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -66,10 +66,10 @@ ...@@ -66,10 +66,10 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>pl = state_change[\'object\']\n <value> <string>pl = state_change[\'object\']\n
#pl.log(pl.getRelativeUrl())\n
for movement in pl.getAggregatedItemsNextImmobilisationMovementValueList():\n for movement in pl.getAggregatedItemsNextImmobilisationMovementValueList():\n
if movement.getImmobilisationState() != \'calculating\':\n if movement.getImmobilisationState() != \'calculating\':\n
movement.calculateImmobilisationValidity()\n movement.calculateImmobilisationValidity()\n
context.ImmobilisationDelivery_expandAggregatedItems()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -131,7 +131,6 @@ context.ImmobilisationDelivery_expandAggregatedItems()\n ...@@ -131,7 +131,6 @@ context.ImmobilisationDelivery_expandAggregatedItems()\n
<string>_getiter_</string> <string>_getiter_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>movement</string> <string>movement</string>
<string>context</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="States" module="Products.DCWorkflow.States"/>
<string>Products.DCWorkflow.States</string> <tuple/>
<string>States</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="StateDefinition" module="Products.DCWorkflow.States"/>
<string>Products.DCWorkflow.States</string> <tuple/>
<string>StateDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="StateDefinition" module="Products.DCWorkflow.States"/>
<string>Products.DCWorkflow.States</string> <tuple/>
<string>StateDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -47,7 +44,6 @@ ...@@ -47,7 +44,6 @@
<value> <value>
<tuple> <tuple>
<string>calculate_immobilisation_validity</string> <string>calculate_immobilisation_validity</string>
<string>edit</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="StateDefinition" module="Products.DCWorkflow.States"/>
<string>Products.DCWorkflow.States</string> <tuple/>
<string>StateDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -47,7 +44,6 @@ ...@@ -47,7 +44,6 @@
<value> <value>
<tuple> <tuple>
<string>calculate_immobilisation_validity</string> <string>calculate_immobilisation_validity</string>
<string>edit</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Transitions" module="Products.DCWorkflow.Transitions"/>
<string>Products.DCWorkflow.Transitions</string> <tuple/>
<string>Transitions</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
<string>Products.DCWorkflow.Transitions</string> <tuple/>
<string>TransitionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.DCWorkflow.Transitions</string>
<string>TransitionDefinition</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string>ImmobilisationMovement_afterEdit</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>edit</string> </value>
</item>
<item>
<key> <string>new_state_id</string> </key>
<value> <string>calculating</string> </value>
</item>
<item>
<key> <string>script_name</string> </key>
<value> <string>ImmobilisationMovement_beforeEdit</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
<string>Products.DCWorkflow.Transitions</string> <tuple/>
<string>TransitionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
<string>Products.DCWorkflow.Transitions</string> <tuple/>
<string>TransitionDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Variables" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>Variables</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="VariableDefinition" module="Products.DCWorkflow.Variables"/>
<string>Products.DCWorkflow.Variables</string> <tuple/>
<string>VariableDefinition</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Worklists" module="Products.DCWorkflow.Worklists"/>
<string>Products.DCWorkflow.Worklists</string> <tuple/>
<string>Worklists</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
2007-10-11 Nicolas
Update Workflows, not using edit transition anymore
2007-10-04 Nicolas 2007-10-04 Nicolas
Update Amortisation Transaction Causality Workflow Update Amortisation Transaction Causality Workflow
rename edit transition to calculate rename edit transition to calculate
......
This diff is collapsed.
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