Commit eecaad1b authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added getSelectionUidList


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@794 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 92ed4806
...@@ -698,6 +698,13 @@ class SelectionTool( UniqueObject, SimpleItem ): ...@@ -698,6 +698,13 @@ class SelectionTool( UniqueObject, SimpleItem ):
value_list = self.getSelectionSelectedValueList(selection_name, REQUEST=REQUEST, selection_method=selection_method, context=context) value_list = self.getSelectionSelectedValueList(selection_name, REQUEST=REQUEST, selection_method=selection_method, context=context)
return value_list return value_list
security.declareProtected(ERP5Permissions.View, 'getSelectionUidList')
def getSelectionUidList(self, selection_name, REQUEST=None, selection_method=None, context=None):
"""
Get the list of values checked or selected for 'selection_name'
"""
return map(lambda x:x.getObject().getUid(), self.getSelectionValueList(selection_name, REQUEST=REQUEST, selection_method=selection_method, context=context))
security.declareProtected(ERP5Permissions.View, 'selectionHasChanged') security.declareProtected(ERP5Permissions.View, 'selectionHasChanged')
def selectionHasChanged(self, md5_string, object_uid_list): def selectionHasChanged(self, md5_string, object_uid_list):
""" """
......
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