From 2a766e6d34e5a86eac12e16ce8e31fb01e6c31a5 Mon Sep 17 00:00:00 2001
From: Gabriel Monnerat <gabriel@tiolive.com>
Date: Mon, 22 Aug 2011 13:21:31 -0300
Subject: [PATCH] revert all changes from slave_instance branch. This script
 should follow the master script to the error not be hide

---
 .../SoftwareInstance_startComputerPartition.xml       | 11 +++--------
 master/bt5/vifib_base/bt/revision                     |  2 +-
 2 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/master/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/scripts/SoftwareInstance_startComputerPartition.xml b/master/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/scripts/SoftwareInstance_startComputerPartition.xml
index 17e624674..f5ea5212a 100644
--- a/master/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/scripts/SoftwareInstance_startComputerPartition.xml
+++ b/master/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/scripts/SoftwareInstance_startComputerPartition.xml
@@ -50,14 +50,9 @@
         </item>
         <item>
             <key> <string>_body</string> </key>
-            <value> <string>from Products.ERP5Type.Log import log\n
-packing_list_line = context.SoftwareInstance_getInstanceHostingPackingListLine(state_change)\n
-if packing_list_line.getSimulationState() not in ("started", "delivered"):\n
-  packing_list_line.getParentValue().start()\n
-else:\n
-  software_instance = state_change["object"].getRelativeUrl()\n
-  log("Unable to start sale Packing List %s for Software Instance %s" % \\\n
-       (packing_list_line.getRelativeUrl(), software_instance))\n
+            <value> <string>packing_list_line = context.SoftwareInstance_getInstanceHostingPackingListLine(state_change)\n
+packing_list = packing_list_line.getParentValue()\n
+packing_list.start()\n
 </string> </value>
         </item>
         <item>
diff --git a/master/bt5/vifib_base/bt/revision b/master/bt5/vifib_base/bt/revision
index 74de09f2e..61f9147fd 100644
--- a/master/bt5/vifib_base/bt/revision
+++ b/master/bt5/vifib_base/bt/revision
@@ -1 +1 @@
-274
\ No newline at end of file
+275
\ No newline at end of file
-- 
2.30.9