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 ): ...@@ -171,8 +171,8 @@ class SelectionTool( UniqueObject, SimpleItem ):
#except: #except:
# LOG('WARNING ERP5Form SelectionTool',0,'Could not set Selection') # LOG('WARNING ERP5Form SelectionTool',0,'Could not set Selection')
security.declareProtected(ERP5Permissions.View, 'getSelectionParams') security.declareProtected(ERP5Permissions.View, 'getSelectionParamsFor')
def getSelectionParams(self, selection_name, params=None, REQUEST=None): def getSelectionParamsFor(self, selection_name, params=None, REQUEST=None):
""" """
Returns the params in the selection Returns the params in the selection
""" """
...@@ -185,7 +185,11 @@ class SelectionTool( UniqueObject, SimpleItem ): ...@@ -185,7 +185,11 @@ class SelectionTool( UniqueObject, SimpleItem ):
return params return params
else: else:
return params return params
# backward compatibility
security.declareProtected(ERP5Permissions.View, 'getSelectionParams')
getSelectionParams = getSelectionParamsFor
security.declareProtected(ERP5Permissions.View, 'setSelectionParamsFor') security.declareProtected(ERP5Permissions.View, 'setSelectionParamsFor')
def setSelectionParamsFor(self, selection_name, params, REQUEST=None): 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