Commit 769fc1c9 authored by Romain Courteaud's avatar Romain Courteaud

Declare dynamic viewSearchRelatedDocumentDialog methods as public.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12942 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dd25763f
No related merge requests found
......@@ -1177,8 +1177,8 @@ class SelectionTool( UniqueObject, SimpleItem ):
"""
viewSearchRelatedDocumentDialog Wrapper
"""
LOG('SelectionTool.viewSearchRelatedDocumentDialogWrapper, kw',
0, kw)
# LOG('SelectionTool.viewSearchRelatedDocumentDialogWrapper, kw',
# 0, kw)
return self.viewSearchRelatedDocumentDialog(
method_count, form_id,
REQUEST=REQUEST, sub_index=sub_index, **kw)
......@@ -1186,13 +1186,10 @@ class SelectionTool( UniqueObject, SimpleItem ):
viewSearchRelatedDocumentDialogWrapper)
klass = aq_base(self).__class__
if hasattr(klass, 'security'):
from Products.ERP5Type import Permissions as ERP5Permissions
klass.security.declareProtected(ERP5Permissions.View, name)
else:
# XXX security declaration always failed....
LOG('WARNING ERP5Form SelectionTool, security not defined on',
0, klass.__name__)
security_property_id = '%s__roles__' % (name, )
# Declare method as public
setattr(klass, security_property_id, None)
return getattr(self, name)
else:
return aq_base_name
......
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