Commit 5063e57c authored by Nicolas Dumazet's avatar Nicolas Dumazet

getPortalConstraintTypeList on portal


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43146 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 14eb3215
...@@ -767,6 +767,14 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin): ...@@ -767,6 +767,14 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
return self._getPortalGroupedTypeList('supply') or \ return self._getPortalGroupedTypeList('supply') or \
self._getPortalConfiguration('portal_supply_type_list') self._getPortalConfiguration('portal_supply_type_list')
security.declareProtected(Permissions.AccessContentsInformation,
'getPortalConstraintTypeList')
def getPortalConstraintTypeList(self):
"""
Return rule types.
"""
return self._getPortalGroupedTypeList('constraint')
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getPortalRuleTypeList') 'getPortalRuleTypeList')
def getPortalRuleTypeList(self): def getPortalRuleTypeList(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