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 ): ...@@ -106,7 +106,6 @@ class ERP5TypeInformation( FactoryTypeInformation, RoleProviderBase ):
hidden_content_type_list = () hidden_content_type_list = ()
filter_actions = 0 filter_actions = 0
allowed_action_list = [] allowed_action_list = []
_aliases = {}
# #
# Acquisition editing interface # Acquisition editing interface
...@@ -114,11 +113,13 @@ class ERP5TypeInformation( FactoryTypeInformation, RoleProviderBase ): ...@@ -114,11 +113,13 @@ class ERP5TypeInformation( FactoryTypeInformation, RoleProviderBase ):
_actions_form = DTMLFile( 'editToolsActions', _dtmldir ) _actions_form = DTMLFile( 'editToolsActions', _dtmldir )
def __init__(self, id, **kw): security.declarePrivate('_guessMethodAliases')
if not kw.has_key('aliases'): def _guessMethodAliases(self):
kw['aliases'] = {} """ Override this method to disable Method Aliases in ERP5.
FactoryTypeInformation.__init__(self, id, **kw) """
self.setMethodAliases({})
return 1
security.declarePublic('hideFromAddMenu') security.declarePublic('hideFromAddMenu')
def hidenFromAddMenu(self): 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