Commit 5bf7feba authored by Aurel's avatar Aurel

defined methodId__roles__ for zope 2.7 on patched method, in order to let it know the

security of the method


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17082 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 695f6ec2
...@@ -1522,6 +1522,8 @@ for source_klass, destination_klass in \ ...@@ -1522,6 +1522,8 @@ for source_klass, destination_klass in \
for method_id in method_id_list: for method_id in method_id_list:
if not hasattr(destination_klass, method_id): if not hasattr(destination_klass, method_id):
setattr(destination_klass, method_id, NotImplementedClass(method_id)) setattr(destination_klass, method_id, NotImplementedClass(method_id))
# Zope 2.7 required to have methodId__roles__ defined
# to know the security ot the method
setattr(destination_klass, method_id+'__roles__', None)
# Overwrite Zope setTitle() # Overwrite Zope setTitle()
Folder.setTitle = Base.setTitle Folder.setTitle = Base.setTitle
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