Commit 67a9595d authored by Yoshinori Okuji's avatar Yoshinori Okuji

Define getTypeMixinList and getTypeInterfaceList as well explicitly.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39464 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1f24f2b6
......@@ -423,10 +423,25 @@ class ERP5TypeInformation(XMLObject,
"""Getter for 'type_base_category' property"""
return list(self.base_category_list)
# XXX this is required for a bootstrap issue.
# XXX these methods, _baseGetTypeClass, getTypeMixinList, and
# getTypeInterfaceList, are required for a bootstrap issue that
# the portal type class Base Type is required for _aq_dynamic on
# Base Type. So surpress calling _aq_dynamic when obtaining information
# required for generating a portal type class by declaring these methods
# explicitly.
def _baseGetTypeClass(self):
return getattr(aq_base(self), 'type_class', None)
security.declareProtected(Permissions.AccessContentsInformation,
'getTypeMixinList')
def getTypeMixinList(self):
return getattr(aq_base(self), 'type_mixin', ())
security.declareProtected(Permissions.AccessContentsInformation,
'getTypeInterfaceList')
def getTypeInterfaceList(self):
return getattr(aq_base(self), 'type_interface', ())
security.declareProtected(Permissions.AccessContentsInformation,
'getTypeClass')
def getTypeClass(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