Commit c322b98d authored by Aurel's avatar Aurel

add getPortal*TypeList for purchase, sale and internal group


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34701 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cba2229b
...@@ -889,6 +889,30 @@ class ERP5Site(FolderMixIn, CMFSite): ...@@ -889,6 +889,30 @@ class ERP5Site(FolderMixIn, CMFSite):
return self._getPortalGroupedTypeList('service') or \ return self._getPortalGroupedTypeList('service') or \
self._getPortalConfiguration('portal_service_type_list') 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, security.declareProtected(Permissions.AccessContentsInformation,
'getPortalAlarmTypeList') 'getPortalAlarmTypeList')
def getPortalAlarmTypeList(self): def getPortalAlarmTypeList(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment