From eecaad1b5801fa22b67b6560d23529e16b10ff47 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Sun, 2 May 2004 19:33:15 +0000
Subject: [PATCH] Added getSelectionUidList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@794 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Form/SelectionTool.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/product/ERP5Form/SelectionTool.py b/product/ERP5Form/SelectionTool.py
index 27f01580a7..01a2764cb8 100755
--- a/product/ERP5Form/SelectionTool.py
+++ b/product/ERP5Form/SelectionTool.py
@@ -698,6 +698,13 @@ class SelectionTool( UniqueObject, SimpleItem ):
         value_list = self.getSelectionSelectedValueList(selection_name, REQUEST=REQUEST, selection_method=selection_method, context=context)
       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')
     def selectionHasChanged(self, md5_string, object_uid_list):
       """
-- 
2.30.9