diff --git a/product/ERP5Form/SelectionTool.py b/product/ERP5Form/SelectionTool.py index 0119de29bfb3fb08a013e11e748172c54a17dc64..66bf0644505f57df7296c89ccb26ac057a1d4560 100755 --- a/product/ERP5Form/SelectionTool.py +++ b/product/ERP5Form/SelectionTool.py @@ -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 """ @@ -185,7 +185,11 @@ class SelectionTool( UniqueObject, SimpleItem ): return params 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): """