Commit ea3dfd15 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

revise security declarations.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13803 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent de97502f
......@@ -240,7 +240,7 @@ class SelectionTool( UniqueObject, SimpleItem ):
selection_object = Selection(params=params)
self.setSelectionFor(selection_name, selection_object, REQUEST)
security.declareProtected(ERP5Permissions.View, 'setSelectionDomainDictFor')
security.declareProtected(ERP5Permissions.View, 'getSelectionDomainDictFor')
def getSelectionDomainDictFor(self, selection_name, REQUEST=None):
"""
Returns the Domain dict for a given selection_name
......@@ -252,7 +252,7 @@ class SelectionTool( UniqueObject, SimpleItem ):
except AttributeError:
return {}
security.declareProtected(ERP5Permissions.View, 'setSelectionDomainDictFor')
security.declareProtected(ERP5Permissions.View, 'getSelectionReportDictFor')
def getSelectionReportDictFor(self, selection_name, REQUEST=None):
"""
Returns the Report dict for a given selection_name
......@@ -276,6 +276,7 @@ class SelectionTool( UniqueObject, SimpleItem ):
selection_object = Selection(checked_uids=checked_uids)
self.setSelectionFor(selection_name, selection_object, REQUEST)
security.declareProtected(ERP5Permissions.View, 'updateSelectionCheckedUidList')
def updateSelectionCheckedUidList(self, selection_name, listbox_uid, uids, REQUEST=None):
"""
Updates the unchecked uids(listbox_uids) and checked uids (uids)
......@@ -370,7 +371,7 @@ class SelectionTool( UniqueObject, SimpleItem ):
if selection is not None:
selection.edit(invert_mode=invert_mode)
security.declareProtected(ERP5Permissions.View, 'getSelectionInvertModeFor')
security.declareProtected(ERP5Permissions.View, 'getSelectionInvertModeUidListFor')
def getSelectionInvertModeUidListFor(self, selection_name, REQUEST=None):
"""Get the 'invert_mode' parameter of a selection.
"""
......
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