Commit a0e4f39f authored by Aurel's avatar Aurel

list getter must not acquired properties


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11569 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ac7b9ef8
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment