From 9072b4f3388b4e25341ae91005113215f31ca127 Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Fri, 23 Oct 2009 12:01:24 +0000
Subject: [PATCH] use aq_base to prevent to aquisition

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

diff --git a/product/ERP5/mixin/cached_convertable.py b/product/ERP5/mixin/cached_convertable.py
index 553aed58c9..a83fe1c79c 100644
--- a/product/ERP5/mixin/cached_convertable.py
+++ b/product/ERP5/mixin/cached_convertable.py
@@ -146,7 +146,7 @@ class CachedConvertableMixin:
     if self.isTempObject():
       return getattr(aq_base(self), 'temp_conversion_data', {})[cache_id]
     for cache_plugin in self._getCacheFactory().getCachePluginList():
-      document_path = getattr(self, 'original_path', self.getPath())
+      document_path = getattr(aq_base(self), 'original_path', self.getPath())
       cache_entry = cache_plugin.get(document_path, DEFAULT_CACHE_SCOPE)
       data_list = cache_entry.getValue().get(cache_id)
       if data_list:
-- 
2.30.9