Commit 15c6dab2 authored by Romain Courteaud's avatar Romain Courteaud Committed by Rafael Monnerat

BusinessTemplate: fixup getTemplatePortalTypeTypeMixinList

parent c302dc5b
Pipeline #20003 canceled with stage
in 0 seconds
...@@ -5708,13 +5708,18 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -5708,13 +5708,18 @@ Business Template is a set of definitions, such as skins, portal types and categ
""" """
return self._getOrderedList('template_portal_type_base_category') return self._getOrderedList('template_portal_type_base_category')
security.declareProtected(Permissions.AccessContentsInformation, 'getTemplatePortalTypeTypeMixiniList') security.declareProtected(Permissions.AccessContentsInformation, 'getTemplatePortalTypeTypeMixinList')
def getTemplatePortalTypeTypeMixinList(self): def getTemplatePortalTypeTypeMixinList(self):
""" """
We have to set this method because we want an We have to set this method because we want an
ordered list ordered list
""" """
try:
return self._getOrderedList('template_portal_type_type_mixin') return self._getOrderedList('template_portal_type_type_mixin')
# This property may not be defined if erp5_property_sheets has not been
# upgraded yet
except AttributeError:
return ()
security.declareProtected(Permissions.AccessContentsInformation, 'getTemplateActionPathList') security.declareProtected(Permissions.AccessContentsInformation, 'getTemplateActionPathList')
def getTemplateActionPathList(self): def getTemplateActionPathList(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