Commit 98ed196e authored by Jérome Perrin's avatar Jérome Perrin

append to Products.CMFCore.TypesTool.typeClasses list instead of replacing the list.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8993 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6d6ff1f7
......@@ -525,23 +525,8 @@ class ERP5TypeInformation( FactoryTypeInformation, RoleProviderBase, Translation
InitializeClass( ERP5TypeInformation )
typeClasses = [
{'class':FactoryTypeInformation,
'name':FactoryTypeInformation.meta_type,
'action':'manage_addFactoryTIForm',
'permission':'Manage portal'},
{'class':ScriptableTypeInformation,
'name':ScriptableTypeInformation.meta_type,
'action':'manage_addScriptableTIForm',
'permission':'Manage portal'},
{'class':ERP5TypeInformation,
'name':ERP5TypeInformation.meta_type,
'action':'manage_addERP5TIForm',
'permission':'Manage portal'},
]
def manage_addERP5TIForm(self, REQUEST):
' '
' form to add an ERP5 Type Information '
return self._addTIForm(
self, REQUEST,
add_meta_type=ERP5TypeInformation.meta_type,
......@@ -549,6 +534,10 @@ def manage_addERP5TIForm(self, REQUEST):
# Dynamic patch
Products.CMFCore.TypesTool.typeClasses = typeClasses
Products.CMFCore.TypesTool.typeClasses.append(
{'class':ERP5TypeInformation,
'name':ERP5TypeInformation.meta_type,
'action':'manage_addERP5TIForm',
'permission':'Manage portal'}, )
Products.CMFCore.TypesTool.TypesTool.manage_addERP5TIForm = manage_addERP5TIForm
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