Commit be6e2f08 authored by Yoshinori Okuji's avatar Yoshinori Okuji

No reason to create ERP5TypesTool. This is only harmful.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5137 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b789585b
...@@ -451,16 +451,7 @@ typeClasses = [ ...@@ -451,16 +451,7 @@ typeClasses = [
'permission':'Manage portal'}, 'permission':'Manage portal'},
] ]
class ERP5TypesTool(TypesTool): def manage_addERP5TIForm(self, REQUEST):
"""
Only used to patch standard TypesTool
"""
meta_type = 'ERP5 Type Information'
security = ClassSecurityInfo()
security.declareProtected(ERP5Permissions.ManagePortal, 'manage_addERP5TIForm')
def manage_addERP5TIForm(self, REQUEST):
' ' ' '
return self._addTIForm( return self._addTIForm(
self, REQUEST, self, REQUEST,
...@@ -470,5 +461,5 @@ class ERP5TypesTool(TypesTool): ...@@ -470,5 +461,5 @@ class ERP5TypesTool(TypesTool):
# Dynamic patch # Dynamic patch
Products.CMFCore.TypesTool.typeClasses = typeClasses Products.CMFCore.TypesTool.typeClasses = typeClasses
Products.CMFCore.TypesTool.TypesTool.manage_addERP5TIForm = ERP5TypesTool.manage_addERP5TIForm 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