Commit 0e344633 authored by Jérome Perrin's avatar Jérome Perrin

rename getSelectionParams in getSelectionParamsFor for naming consistency


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3635 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b70b258c
......@@ -171,8 +171,8 @@ class SelectionTool( UniqueObject, SimpleItem ):
#except:
# LOG('WARNING ERP5Form SelectionTool',0,'Could not set Selection')
security.declareProtected(ERP5Permissions.View, 'getSelectionParams')
def getSelectionParams(self, selection_name, params=None, REQUEST=None):
security.declareProtected(ERP5Permissions.View, 'getSelectionParamsFor')
def getSelectionParamsFor(self, selection_name, params=None, REQUEST=None):
"""
Returns the params in the selection
"""
......@@ -186,6 +186,10 @@ class SelectionTool( UniqueObject, SimpleItem ):
else:
return params
# backward compatibility
security.declareProtected(ERP5Permissions.View, 'getSelectionParams')
getSelectionParams = getSelectionParamsFor
security.declareProtected(ERP5Permissions.View, 'setSelectionParamsFor')
def setSelectionParamsFor(self, selection_name, params, REQUEST=None):
"""
......
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