From 5b12434d44fe75f108cf2be65e0ecc38a13aef22 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Mon, 28 Jan 2008 09:38:38 +0000
Subject: [PATCH] use uid in cache key instead of _p_oid, as oid is not unique
 among many data.fs but uid is

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

diff --git a/product/CMFCategory/CategoryTool.py b/product/CMFCategory/CategoryTool.py
index b40248b9fa..d77cc5dd65 100644
--- a/product/CMFCategory/CategoryTool.py
+++ b/product/CMFCategory/CategoryTool.py
@@ -839,7 +839,7 @@ class CategoryTool( UniqueObject, Folder, Base ):
                                          spec=(), filter=None, acquired_object_dict = None, **kw ):
       cache = getReadOnlyTransactionCache(self)
       if cache is not None:
-        key = ('getSingleCategoryAcquiredMembershipList', context._p_oid, base_category, base, spec,
+        key = ('getSingleCategoryAcquiredMembershipList', context.getUid(), base_category, base, spec,
                filter, str(kw))
         try:
           return cache[key]
-- 
2.30.9