From dfbdd2460ce0fabfb33ed90164eae2e64a4549e7 Mon Sep 17 00:00:00 2001
From: Lucas Carvalho <lucas@nexedi.com>
Date: Thu, 31 Mar 2011 16:28:08 +0000
Subject: [PATCH] Create the BusinessPath and BusinessLink objects.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44933 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../Document/BusinessProcessConfiguratorItem.py            | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/product/ERP5Configurator/Document/BusinessProcessConfiguratorItem.py b/product/ERP5Configurator/Document/BusinessProcessConfiguratorItem.py
index c5679bf18d..656a3a0eea 100644
--- a/product/ERP5Configurator/Document/BusinessProcessConfiguratorItem.py
+++ b/product/ERP5Configurator/Document/BusinessProcessConfiguratorItem.py
@@ -62,9 +62,14 @@ class BusinessProcessConfiguratorItem(ConfiguratorItemMixin, XMLObject):
                                            referece=self.getReference(),
                                            title=self.getTitle())
 
-    ### XXX Create Business Paths and Business Links
 
     business_configuration.setGlobalConfigurationAttr(\
                   business_process_id=business_process.getId())
 
+    # Create Business Paths and Business Links
+    business_process_list = portal.ERPSite_getConfiguratorBusinessProcessList()
+    for property_dict in business_process_list.iteritems():
+        business_process.newContent(**property_dict)
+
+
     self.install(business_process, business_configuration)
-- 
2.30.9