[Erp5-report] r34701 aurel - /erp5/trunk/products/ERP5/ERP5Site.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Apr 21 13:35:43 CEST 2010


Author: aurel
Date: Wed Apr 21 13:35:42 2010
New Revision: 34701

URL: http://svn.erp5.org?rev=34701&view=rev
Log:
add getPortal*TypeList for purchase, sale and internal group

Modified:
    erp5/trunk/products/ERP5/ERP5Site.py

Modified: erp5/trunk/products/ERP5/ERP5Site.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/ERP5Site.py?rev=34701&r1=34700&r2=34701&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/ERP5Site.py [utf8] (original)
+++ erp5/trunk/products/ERP5/ERP5Site.py [utf8] Wed Apr 21 13:35:42 2010
@@ -890,6 +890,30 @@
            self._getPortalConfiguration('portal_service_type_list')
 
   security.declareProtected(Permissions.AccessContentsInformation,
+                            'getPortalSaleTypeList')
+  def getPortalSaleTypeList(self):
+    """
+    Return sale types.
+    """
+    return self._getPortalGroupedTypeList('sale')
+
+  security.declareProtected(Permissions.AccessContentsInformation,
+                            'getPortalPurchaseTypeList')
+  def getPortalPurchaseTypeList(self):
+    """
+    Return purchase types.
+    """
+    return self._getPortalGroupedTypeList('purchase')
+
+  security.declareProtected(Permissions.AccessContentsInformation,
+                            'getPortalInternalTypeList')
+  def getPortalInternalTypeList(self):
+    """
+    Return internal types.
+    """
+    return self._getPortalGroupedTypeList('internal')
+
+  security.declareProtected(Permissions.AccessContentsInformation,
                             'getPortalAlarmTypeList')
   def getPortalAlarmTypeList(self):
     """




More information about the Erp5-report mailing list