Commit c7b7bfba authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use a safer way to disable Method Aliases for old CMF.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3568 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b2bc8994
......@@ -106,7 +106,6 @@ class ERP5TypeInformation( FactoryTypeInformation, RoleProviderBase ):
hidden_content_type_list = ()
filter_actions = 0
allowed_action_list = []
_aliases = {}
#
# Acquisition editing interface
......@@ -114,10 +113,12 @@ class ERP5TypeInformation( FactoryTypeInformation, RoleProviderBase ):
_actions_form = DTMLFile( 'editToolsActions', _dtmldir )
def __init__(self, id, **kw):
if not kw.has_key('aliases'):
kw['aliases'] = {}
FactoryTypeInformation.__init__(self, id, **kw)
security.declarePrivate('_guessMethodAliases')
def _guessMethodAliases(self):
""" Override this method to disable Method Aliases in ERP5.
"""
self.setMethodAliases({})
return 1
security.declarePublic('hideFromAddMenu')
def hidenFromAddMenu(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