[Erp5-report] r45015 rafael - /erp5/trunk/products/ERP5Configurator/Document/

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Apr 1 21:41:03 CEST 2011


Author: rafael
Date: Fri Apr  1 21:41:03 2011
New Revision: 45015

URL: http://svn.erp5.org?rev=45015&view=rev
Log:
Use generic Configuration Item.

Modified:
    erp5/trunk/products/ERP5Configurator/Document/ServiceConfiguratorItem.py
    erp5/trunk/products/ERP5Configurator/Document/SitePropertyConfiguratorItem.py

Modified: erp5/trunk/products/ERP5Configurator/Document/ServiceConfiguratorItem.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Configurator/Document/ServiceConfiguratorItem.py?rev=45015&r1=45014&r2=45015&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Configurator/Document/ServiceConfiguratorItem.py [utf8] (original)
+++ erp5/trunk/products/ERP5Configurator/Document/ServiceConfiguratorItem.py [utf8] Fri Apr  1 21:41:03 2011
@@ -53,14 +53,14 @@ class ServiceConfiguratorItem(Configurat
                     , PropertySheet.XMLObject
                     , PropertySheet.CategoryCore
                     , PropertySheet.DublinCore
-                    , PropertySheet.ServiceConfiguratorItem )
+                    , PropertySheet.ConfiguratorItem )
 
   def build(self, business_configuration):
     portal = self.getPortalObject()
     module = portal.service_module
     # XXX Maybe this approach efficient and scalable.
     object_id_list = module.objectIds()
-    for service_id, service_title in self.getServiceList():
+    for service_id, service_title in self.getConfigurationList():
       if service_id not in object_id_list:
         document = module.newContent(portal_type='Service',
                                    id=service_id,

Modified: erp5/trunk/products/ERP5Configurator/Document/SitePropertyConfiguratorItem.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Configurator/Document/SitePropertyConfiguratorItem.py?rev=45015&r1=45014&r2=45015&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Configurator/Document/SitePropertyConfiguratorItem.py [utf8] (original)
+++ erp5/trunk/products/ERP5Configurator/Document/SitePropertyConfiguratorItem.py [utf8] Fri Apr  1 21:41:03 2011
@@ -53,12 +53,12 @@ class SitePropertyConfiguratorItem(Confi
                     , PropertySheet.XMLObject
                     , PropertySheet.CategoryCore
                     , PropertySheet.DublinCore
-                    , PropertySheet.SitePropertyConfiguratorItem )
+                    , PropertySheet.ConfiguratorItem )
 
   def build(self, business_configuration):
     portal = self.getPortalObject()
     id_list = []
-    for id, value, prop_type in self.getSitePropertyList():
+    for id, value, prop_type in self.getConfigurationList():
       if portal.hasProperty(id):
         portal._delProperty(id)
       portal._setProperty(id, value, type=prop_type)



More information about the Erp5-report mailing list