Commit 568e16c7 authored by Sebastien Robin's avatar Sebastien Robin

added methods getPortalSubVariationTypeList getPortalSubVariationBaseCategoryList


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4803 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 96a0d6af
...@@ -319,6 +319,21 @@ class ERP5Site ( CMFSite, FolderMixIn ): ...@@ -319,6 +319,21 @@ class ERP5Site ( CMFSite, FolderMixIn ):
""" """
return self._getPortalGroupedTypeList('resource') or self._getPortalConfiguration('portal_resource_type_list') return self._getPortalGroupedTypeList('resource') or self._getPortalConfiguration('portal_resource_type_list')
security.declareProtected(Permissions.AccessContentsInformation, 'getPortalSubVariationTypeList')
def getPortalSubVariationTypeList(self):
"""
Return resource types.
"""
return self._getPortalGroupedTypeList('sub_variation')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalSubVariationBaseCategoryList')
def getPortalSubVariationBaseCategoryList(self):
"""
Return variation base categories.
"""
return self._getPortalGroupedCategoryList('sub_variation')
security.declareProtected(Permissions.AccessContentsInformation, 'getPortalVariationTypeList') security.declareProtected(Permissions.AccessContentsInformation, 'getPortalVariationTypeList')
def getPortalVariationTypeList(self): def getPortalVariationTypeList(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