Commit ac7b9ef8 authored by Aurel's avatar Aurel

do not set None by default on properties


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11568 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 416f0a43
......@@ -1307,9 +1307,9 @@ def setDefaultProperties(property_holder, object=None):
# setattr(property_holder, 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(BaseClass, storage_id):
#if not hasattr(BaseClass, storage_id):
# setattr(property_holder, storage_id, None) # This breaks things with aq_dynamic
setattr(BaseClass, storage_id, None) # This blocks acquisition
#setattr(BaseClass, storage_id, None) # This blocks acquisition
#else:
#LOG('existing property',0,str(storage_id))
#if prop.get('default') is not None:
......
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