From 63e38ece6dce620d1ca2ba0a6f1f0cee4bdb3eea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Fri, 21 Jan 2011 10:17:53 +0000
Subject: [PATCH] - validate Software Instance after creation to make it
 loggable

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42558 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../scripts/SoftwareInstance_requestSoftwareInstance.xml        | 1 +
 bt5/vifib_base/bt/revision                                      | 2 +-
 .../scripts/Person_requestSoftwareInstance.xml                  | 2 +-
 bt5/vifib_slap/bt/revision                                      | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/scripts/SoftwareInstance_requestSoftwareInstance.xml b/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/scripts/SoftwareInstance_requestSoftwareInstance.xml
index 2477e32536..c32189cd64 100644
--- a/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/scripts/SoftwareInstance_requestSoftwareInstance.xml
+++ b/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/scripts/SoftwareInstance_requestSoftwareInstance.xml
@@ -99,6 +99,7 @@ if (request_software_instance is None):\n
       activate_kw={\'tag\': tag},\n
       **portal.Base_getNewSoftwareInstanceCoordinate()\n
     )\n
+    request_software_instance.validate()\n
     sale_packing_list_line = context.SoftwareInstance_getInstanceSetupPackingListLine(state_change)\n
     hosting_subscription_uid = sale_packing_list_line.getAggregateValue(portal_type=\'Hosting Subscription\').getUid()\n
     request_software_instance.requestComputerPartition(\n
diff --git a/bt5/vifib_base/bt/revision b/bt5/vifib_base/bt/revision
index 1edbdbab42..cb37cb5c1f 100644
--- a/bt5/vifib_base/bt/revision
+++ b/bt5/vifib_base/bt/revision
@@ -1 +1 @@
-185
\ No newline at end of file
+186
\ No newline at end of file
diff --git a/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/person_slap_interface_workflow/scripts/Person_requestSoftwareInstance.xml b/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/person_slap_interface_workflow/scripts/Person_requestSoftwareInstance.xml
index 8d3bb169a2..d4ad98f777 100644
--- a/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/person_slap_interface_workflow/scripts/Person_requestSoftwareInstance.xml
+++ b/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/person_slap_interface_workflow/scripts/Person_requestSoftwareInstance.xml
@@ -97,7 +97,7 @@ if (request_software_instance is None):\n
             activate_kw={\'tag\': tag},\n
             **portal.Base_getNewSoftwareInstanceCoordinate()\n
     )\n
-\n
+    software_instance.validate()\n
     subscription = portal.getDefaultModule(portal_type=hosting_subscription_portal_type).newContent(\n
       portal_type=hosting_subscription_portal_type,\n
       title=requested_partition_reference,\n
diff --git a/bt5/vifib_slap/bt/revision b/bt5/vifib_slap/bt/revision
index f9c94c8318..9573848579 100644
--- a/bt5/vifib_slap/bt/revision
+++ b/bt5/vifib_slap/bt/revision
@@ -1 +1 @@
-325
\ No newline at end of file
+326
\ No newline at end of file
-- 
2.30.9