[Erp5-report] r26881 - in /erp5/trunk/products/ERP5: ./ PropertySheet/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu May 7 15:14:28 CEST 2009


Author: yusuke
Date: Thu May  7 15:14:27 2009
New Revision: 26881

URL: http://svn.erp5.org?rev=26881&view=rev
Log:
added portal type informations for bpm to site
transformation will understand trade_phase instead of industrial_phase

Modified:
    erp5/trunk/products/ERP5/ERP5Defaults.py
    erp5/trunk/products/ERP5/ERP5Site.py
    erp5/trunk/products/ERP5/PropertySheet/TransformedResource.py

Modified: erp5/trunk/products/ERP5/ERP5Defaults.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/ERP5Defaults.py?rev=26881&r1=26880&r2=26881&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/ERP5Defaults.py [utf8] (original)
+++ erp5/trunk/products/ERP5/ERP5Defaults.py [utf8] Thu May  7 15:14:27 2009
@@ -180,6 +180,10 @@
 
 portal_supply_path_type_list = ('Supply Line','Supply Cell')
 
+portal_business_process_type_list = ('Business Process',)
+portal_business_state_type_list = ('Business State',)
+portal_business_path_type_list = ('Business Path',)
+
 # This transaction lines are special because destination must be None.
 portal_balance_transaction_line_type_list = ('Balance Transaction Line',)
 
@@ -208,3 +212,4 @@
 # invoiced is Coramy specific and should be removed
 
 portal_updatable_amortisation_transaction_state_list = ('draft',)
+

Modified: erp5/trunk/products/ERP5/ERP5Site.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/ERP5Site.py?rev=26881&r1=26880&r2=26881&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/ERP5Site.py [utf8] (original)
+++ erp5/trunk/products/ERP5/ERP5Site.py [utf8] Thu May  7 15:14:27 2009
@@ -735,6 +735,33 @@
     """
     return self._getPortalGroupedTypeList('supply_path') or \
            self._getPortalConfiguration('portal_supply_path_type_list')
+
+  security.declareProtected(Permissions.AccessContentsInformation,
+                            'getPortalBusinessProcessTypeList')
+  def getPortalBusinessProcessTypeList(self):
+    """
+      Return business process types.
+    """
+    return self._getPortalGroupedTypeList('business_process') or \
+           self._getPortalConfiguration('portal_business_process_type_list')
+
+  security.declareProtected(Permissions.AccessContentsInformation,
+                            'getPortalBusinessStateTypeList')
+  def getPortalBusinessStateTypeList(self):
+    """
+      Return business state types.
+    """
+    return self._getPortalGroupedTypeList('business_state') or \
+           self._getPortalConfiguration('portal_business_state_type_list')
+
+  security.declareProtected(Permissions.AccessContentsInformation,
+                            'getPortalBusinessPathTypeList')
+  def getPortalBusinessPathTypeList(self):
+    """
+      Return business path types.
+    """
+    return self._getPortalGroupedTypeList('business_path') or \
+           self._getPortalConfiguration('portal_business_path_type_list')
 
   security.declareProtected(Permissions.AccessContentsInformation,
                             'getPortalAcquisitionMovementTypeList')

Modified: erp5/trunk/products/ERP5/PropertySheet/TransformedResource.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/PropertySheet/TransformedResource.py?rev=26881&r1=26880&r2=26881&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/PropertySheet/TransformedResource.py [utf8] (original)
+++ erp5/trunk/products/ERP5/PropertySheet/TransformedResource.py [utf8] Thu May  7 15:14:27 2009
@@ -57,4 +57,4 @@
 #            'mode'        : 'w' },
     )
 
-    _categories = ('specialise', 'industrial_phase', 'option')
+    _categories = ('specialise', 'industrial_phase', 'option', 'trade_phase')




More information about the Erp5-report mailing list