Commit 92090fb7 authored by Romain Courteaud's avatar Romain Courteaud

Add portal methods: getPortalEventTypeList and getPortalTicketTypeList.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7303 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2524f575
...@@ -676,6 +676,22 @@ class ERP5Site ( FolderMixIn, CMFSite ): ...@@ -676,6 +676,22 @@ class ERP5Site ( FolderMixIn, CMFSite ):
return self._getPortalGroupedCategoryList('assignment') or\ return self._getPortalGroupedCategoryList('assignment') or\
self._getPortalConfiguration('portal_assignment_base_category_list') self._getPortalConfiguration('portal_assignment_base_category_list')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalTicketTypeList')
def getPortalTicketTypeList(self):
"""
Return ticket types.
"""
return self._getPortalGroupedTypeList('ticket')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalEventTypeList')
def getPortalEventTypeList(self):
"""
Return event types.
"""
return self._getPortalGroupedTypeList('event')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getDefaultModuleId') 'getDefaultModuleId')
def getDefaultModuleId(self, portal_type): def getDefaultModuleId(self, portal_type):
......
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