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
...@@ -1177,8 +1177,8 @@ class SelectionTool( UniqueObject, SimpleItem ): ...@@ -1177,8 +1177,8 @@ class SelectionTool( UniqueObject, SimpleItem ):
""" """
viewSearchRelatedDocumentDialog Wrapper viewSearchRelatedDocumentDialog Wrapper
""" """
LOG('SelectionTool.viewSearchRelatedDocumentDialogWrapper, kw', # LOG('SelectionTool.viewSearchRelatedDocumentDialogWrapper, kw',
0, kw) # 0, kw)
return self.viewSearchRelatedDocumentDialog( return self.viewSearchRelatedDocumentDialog(
method_count, form_id, method_count, form_id,
REQUEST=REQUEST, sub_index=sub_index, **kw) REQUEST=REQUEST, sub_index=sub_index, **kw)
...@@ -1186,13 +1186,10 @@ class SelectionTool( UniqueObject, SimpleItem ): ...@@ -1186,13 +1186,10 @@ class SelectionTool( UniqueObject, SimpleItem ):
viewSearchRelatedDocumentDialogWrapper) viewSearchRelatedDocumentDialogWrapper)
klass = aq_base(self).__class__ klass = aq_base(self).__class__
if hasattr(klass, 'security'): security_property_id = '%s__roles__' % (name, )
from Products.ERP5Type import Permissions as ERP5Permissions # Declare method as public
klass.security.declareProtected(ERP5Permissions.View, name) setattr(klass, security_property_id, None)
else:
# XXX security declaration always failed....
LOG('WARNING ERP5Form SelectionTool, security not defined on',
0, klass.__name__)
return getattr(self, name) return getattr(self, name)
else: else:
return aq_base_name 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