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,24 +451,15 @@ typeClasses = [ ...@@ -451,24 +451,15 @@ typeClasses = [
'permission':'Manage portal'}, 'permission':'Manage portal'},
] ]
class ERP5TypesTool(TypesTool): def manage_addERP5TIForm(self, REQUEST):
""" ' '
Only used to patch standard TypesTool return self._addTIForm(
""" self, REQUEST,
meta_type = 'ERP5 Type Information' add_meta_type=ERP5TypeInformation.meta_type,
types=self.listDefaultTypeInformation())
security = ClassSecurityInfo()
security.declareProtected(ERP5Permissions.ManagePortal, 'manage_addERP5TIForm')
def manage_addERP5TIForm(self, REQUEST):
' '
return self._addTIForm(
self, REQUEST,
add_meta_type=ERP5TypeInformation.meta_type,
types=self.listDefaultTypeInformation())
# 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