From 7004f5adfa3afd34a6d3495975fb74b53a5020d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Thu, 16 Aug 2012 14:35:43 +0200 Subject: [PATCH] Initialise causality state for cloned deliveries. --- .../SalePackingListLine_checkAndCloneCleanupPartition.xml | 1 + master/bt5/vifib_slap/bt/revision | 2 +- .../scripts/Instance_changePromiseState.xml | 1 + master/bt5/vifib_slapos_accounting/bt/revision | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/SalePackingListLine_checkAndCloneCleanupPartition.xml b/master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/SalePackingListLine_checkAndCloneCleanupPartition.xml index 9a837d01a..05f365eea 100644 --- a/master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/SalePackingListLine_checkAndCloneCleanupPartition.xml +++ b/master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/SalePackingListLine_checkAndCloneCleanupPartition.xml @@ -94,6 +94,7 @@ if newer_newest_movement is not None:\n new_cleanup_delivery = cleanup_delivery.Base_createCloneDocument(batch_mode=1)\n new_cleanup_delivery.setStartDate(DateTime())\n cleanup_delivery.cancel(comment=\'Cancelled as newer clone is created: %s\' % new_cleanup_delivery.getPath())\n + new_cleanup_delivery.startBuilding()\n new_cleanup_delivery.confirm(comment=\'Replaced too old cleanup delivery: %s\' % cleanup_delivery.getPath())\n diff --git a/master/bt5/vifib_slap/bt/revision b/master/bt5/vifib_slap/bt/revision index 0a91b8cce..089447802 100644 --- a/master/bt5/vifib_slap/bt/revision +++ b/master/bt5/vifib_slap/bt/revision @@ -1 +1 @@ -797 \ No newline at end of file +798 \ No newline at end of file diff --git a/master/bt5/vifib_slapos_accounting/WorkflowTemplateItem/portal_workflow/instance_accounting_slap_interaction_workflow/scripts/Instance_changePromiseState.xml b/master/bt5/vifib_slapos_accounting/WorkflowTemplateItem/portal_workflow/instance_accounting_slap_interaction_workflow/scripts/Instance_changePromiseState.xml index d9bb16c6b..449390d44 100644 --- a/master/bt5/vifib_slapos_accounting/WorkflowTemplateItem/portal_workflow/instance_accounting_slap_interaction_workflow/scripts/Instance_changePromiseState.xml +++ b/master/bt5/vifib_slapos_accounting/WorkflowTemplateItem/portal_workflow/instance_accounting_slap_interaction_workflow/scripts/Instance_changePromiseState.xml @@ -203,6 +203,7 @@ else:\n instance.edit(causality_value=new_delivery)\n else:\n raise NotImplementedError\n + new_delivery.startBuilding()\n \n elif (service_relative_url == cleanup_service_relative_url):\n raise NotImplementedError, "Not update should be allowed"\n diff --git a/master/bt5/vifib_slapos_accounting/bt/revision b/master/bt5/vifib_slapos_accounting/bt/revision index cabf43b5d..410b14d2c 100644 --- a/master/bt5/vifib_slapos_accounting/bt/revision +++ b/master/bt5/vifib_slapos_accounting/bt/revision @@ -1 +1 @@ -24 \ No newline at end of file +25 \ No newline at end of file -- 2.30.9