Commit 2f458f82 authored by Nicolas Delaby's avatar Nicolas Delaby

use Wrapped workflow Methods

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16787 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b0b7d1b6
...@@ -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>
...@@ -71,7 +68,7 @@ ...@@ -71,7 +68,7 @@
<value> <string>movement_content = state_change[\'object\']\n <value> <string>movement_content = state_change[\'object\']\n
movement = movement_content.getRootDeliveryValue()\n movement = movement_content.getRootDeliveryValue()\n
if movement.getImmobilisationState() != \'calculating\':\n if movement.getImmobilisationState() != \'calculating\':\n
movement.calculate_immobilisation_validity()\n movement.calculateImmobilisationValidity()\n
else:\n else:\n
movement.updateImmobilisationState()\n movement.updateImmobilisationState()\n
</string> </value> </string> </value>
...@@ -101,11 +98,7 @@ else:\n ...@@ -101,11 +98,7 @@ else:\n
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
<value> <value>
<tuple> <tuple/>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</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="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -72,7 +69,7 @@ ...@@ -72,7 +69,7 @@
\n \n
for movement in context.getAggregatedItemsNextImmobilisationMovementValueList():\n for movement in context.getAggregatedItemsNextImmobilisationMovementValueList():\n
if movement.getImmobilisationState() != \'calculating\':\n if movement.getImmobilisationState() != \'calculating\':\n
movement.calculate_immobilisation_validity()\n movement.calculateImmobilisationValidity()\n
context.ImmobilisationDelivery_expandAggregatedItems()\n context.ImmobilisationDelivery_expandAggregatedItems()\n
</string> </value> </string> </value>
</item> </item>
...@@ -101,11 +98,7 @@ context.ImmobilisationDelivery_expandAggregatedItems()\n ...@@ -101,11 +98,7 @@ context.ImmobilisationDelivery_expandAggregatedItems()\n
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
<value> <value>
<tuple> <tuple/>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</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="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -69,9 +66,9 @@ ...@@ -69,9 +66,9 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>immobilisation = state_change[\'object\']\n <value> <string>immobilisation = state_change[\'object\']\n
immobilisation.log(\'immoState\',immobilisation.getImmobilisationState())\n #immobilisation.log(\'immoState\',immobilisation.getImmobilisationState())\n
if immobilisation.getImmobilisationState() != \'calculating\':\n if immobilisation.getImmobilisationState() != \'calculating\':\n
immobilisation.calculate_immobilisation_validity()\n immobilisation.calculateImmobilisationValidity()\n
else:\n else:\n
immobilisation.updateImmobilisationState()\n immobilisation.updateImmobilisationState()\n
</string> </value> </string> </value>
...@@ -101,11 +98,7 @@ else:\n ...@@ -101,11 +98,7 @@ else:\n
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
<value> <value>
<tuple> <tuple/>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
41 46
\ 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