From 934051ab441307f144e71817b66baa9f4e3d706e Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Fri, 2 Feb 2007 09:51:42 +0000 Subject: [PATCH] 2006-09-18 Nicolas * Remove activity in immobilisation_movement_interaction_workflow git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12513 20353a03-c40f-0410-a6d1-a30d3c3de9de --- ...dateFutureMovementsImmobilisationState.xml | 26 ++++++++++++++----- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/bt5/erp5_immobilisation/WorkflowTemplateItem/portal_workflow/immobilisation_movement_interaction_workflow/scripts/Immobilisation_updateFutureMovementsImmobilisationState.xml b/bt5/erp5_immobilisation/WorkflowTemplateItem/portal_workflow/immobilisation_movement_interaction_workflow/scripts/Immobilisation_updateFutureMovementsImmobilisationState.xml index 0df30f740d..1c7c494f53 100644 --- a/bt5/erp5_immobilisation/WorkflowTemplateItem/portal_workflow/immobilisation_movement_interaction_workflow/scripts/Immobilisation_updateFutureMovementsImmobilisationState.xml +++ b/bt5/erp5_immobilisation/WorkflowTemplateItem/portal_workflow/immobilisation_movement_interaction_workflow/scripts/Immobilisation_updateFutureMovementsImmobilisationState.xml @@ -14,7 +14,9 @@ <dictionary> <item> <key> <string>Python_magic</string> </key> - <value> <string encoding="base64">O/INCg==</string> </value> + <value> + <none/> + </value> </item> <item> <key> <string>Script_magic</string> </key> @@ -67,14 +69,15 @@ <item> <key> <string>_body</string> </key> <value> <string>context = state_change[\'object\']\n +\n for movement in context.getAggregatedItemsNextImmobilisationMovementValueList():\n if movement.getImmobilisationState() != \'calculating\':\n movement.calculate_immobilisation_validity()\n \n movement_list = context.getImmobilisationMovementList()\n -movement_path_list = [x.getPath() for x in movement_list]\n -\n -context.ImmobilisationDelivery_expandAggregatedItems()\n +movement_uid_list = [\'%s\' % x.getUid() for x in movement_list]\n +movement_uid_list.append(\'%s\' % context.getUid())\n +context.activate(after_tag=movement_uid_list).ImmobilisationDelivery_expandAggregatedItems()\n </string> </value> </item> <item> @@ -85,7 +88,15 @@ context.ImmobilisationDelivery_expandAggregatedItems()\n </item> <item> <key> <string>_filepath</string> </key> - <value> <string>Script (Python):/erp5/portal_workflow/immobilisation_movement_interaction_workflow/scripts/Immobilisation_updateFutureMovementsImmobilisationState</string> </value> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> </item> <item> <key> <string>_params</string> </key> @@ -127,15 +138,16 @@ context.ImmobilisationDelivery_expandAggregatedItems()\n <tuple> <string>state_change</string> <string>kw</string> - <string>_getattr_</string> + <string>_getitem_</string> <string>context</string> <string>_getiter_</string> + <string>_getattr_</string> <string>movement</string> <string>movement_list</string> <string>append</string> <string>$append0</string> <string>x</string> - <string>movement_path_list</string> + <string>movement_uid_list</string> </tuple> </value> </item> -- 2.30.9