Commit 0117f354 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added module type list.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15936 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 89d6625f
...@@ -937,6 +937,14 @@ class ERP5Site(FolderMixIn, CMFSite): ...@@ -937,6 +937,14 @@ class ERP5Site(FolderMixIn, CMFSite):
""" """
return self._getPortalGroupedTypeList('calendar_period') return self._getPortalGroupedTypeList('calendar_period')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalModuleTypeList')
def getPortalModuleTypeList(self):
"""
Return module types.
"""
return self._getPortalGroupedTypeList('module')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getDefaultModuleId') 'getDefaultModuleId')
def getDefaultModuleId(self, portal_type, default=MARKER): def getDefaultModuleId(self, portal_type, default=MARKER):
......
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