From a0e4f39f1729f053c3993df5041f0da7c414153c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Fri, 1 Dec 2006 13:16:31 +0000
Subject: [PATCH] list getter must not acquired properties

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11569 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Accessor/List.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/product/ERP5Type/Accessor/List.py b/product/ERP5Type/Accessor/List.py
index 9f02e56da9..4f03d2187f 100644
--- a/product/ERP5Type/Accessor/List.py
+++ b/product/ERP5Type/Accessor/List.py
@@ -31,6 +31,7 @@ from Base import func_code, type_definition, list_types,\
 from TypeDefinition import asList, identity
 import Base
 from Products.ERP5Type.PsycoWrapper import psyco
+from Acquisition import aq_base
 
 from zLOG import LOG
 
@@ -261,7 +262,7 @@ class ListGetter(Method):
         default = args[0]
       else:
         default = self._default
-      list_value = getattr(instance, self._storage_id, None)
+      list_value = getattr(aq_base(instance), self._storage_id, None)
       # We should not use here self._null but None instead XXX
       if list_value not in self._null:
         if self._is_tales_type:
-- 
2.30.9