From 2935e071d22e2f9a79c98ab2a4ad131b7118ad0d Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Fri, 21 Jan 2011 09:48:42 +0000
Subject: [PATCH] getting uid directly is dangerous because we can get through
 acquisition a parent object uid

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42553 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Catalog/CatalogTool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Catalog/CatalogTool.py b/product/ERP5Catalog/CatalogTool.py
index 850e88bfa2..79f5f95634 100644
--- a/product/ERP5Catalog/CatalogTool.py
+++ b/product/ERP5Catalog/CatalogTool.py
@@ -70,7 +70,7 @@ class IndexableObjectWrapper(object):
         return getattr(self.__ob, name)
 
     # We need to update the uid during the cataloging process
-    uid = property(lambda self: self.__ob.uid,
+    uid = property(lambda self: self.__ob.getUid(),
                    lambda self, value: setattr(self.__ob, 'uid', value))
 
     def _getSecurityParameterList(self):
-- 
2.30.9