Commit fa40e7c7 authored by Romain Courteaud's avatar Romain Courteaud

Add getPortalCalendarPeriodTypeList.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12518 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent afbfa67e
......@@ -852,6 +852,14 @@ class ERP5Site(FolderMixIn, CMFSite):
"""
return self._getPortalGroupedTypeList('divergence_tester')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalCalendarPeriodTypeList')
def getPortalCalendarPeriodTypeList(self):
"""
Return calendar period types.
"""
return self._getPortalGroupedTypeList('calendar_period')
security.declareProtected(Permissions.AccessContentsInformation,
'getDefaultModuleId')
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