From 3a9f895093b22b9ddcfb46645e190a85346f7d2c Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Tue, 21 Dec 2004 16:39:38 +0000
Subject: [PATCH] default property set on BaseClass (to None)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2074 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/Utils.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/product/ERP5Type/Utils.py b/product/ERP5Type/Utils.py
index 188b3bc805..0da8f8905c 100755
--- a/product/ERP5Type/Utils.py
+++ b/product/ERP5Type/Utils.py
@@ -865,7 +865,6 @@ def createExpressionContext(object):
       }
   return getEngine().getContext(data)
 
-
 def setDefaultProperties(klass, object=None):
     """
       This methods sets default accessors for this object as well
@@ -991,14 +990,16 @@ def setDefaultProperties(klass, object=None):
     # allows to create the equivalent of NULL values
     # - new - XXX
     # We remove such properties here
+    from Base import Base as BaseClass
     for prop in converted_prop_list:
       if prop['type'] in legalTypes:
         #if not hasattr(klass, prop['id']):
           # setattr(klass, prop['id'], None) # This makes sure no acquisition will happen
           # but is wrong when we use storage_id .....
         storage_id = prop.get('storage_id', prop['id'])
-        if not hasattr(klass, storage_id):
-          setattr(klass, storage_id, None) # This breaks things with aq_dynamic XXX 
+        if not hasattr(BaseClass, storage_id):
+          # setattr(klass, storage_id, None) # This breaks things with aq_dynamic
+          setattr(BaseClass, storage_id, None) # This blocks acquisition
         #else:
           #LOG('existing property',0,str(storage_id))
           #if prop.get('default') is not None:
-- 
2.30.9