Commit 87d3e67d authored by Alexandre Boeglin's avatar Alexandre Boeglin

Fixed acquired properties accessors names


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7123 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 86935164
...@@ -1439,7 +1439,10 @@ def createDefaultAccessors(property_holder, id, prop = None, ...@@ -1439,7 +1439,10 @@ def createDefaultAccessors(property_holder, id, prop = None,
if not hasattr(property_holder, accessor_name) or prop.get('override',0): if not hasattr(property_holder, accessor_name) or prop.get('override',0):
setattr(property_holder, accessor_name, base_accessor) setattr(property_holder, accessor_name, base_accessor)
property_holder.security.declareProtected( write_permission, accessor_name ) property_holder.security.declareProtected( write_permission, accessor_name )
accessor_name = 'baseSet' + UpperCase(id) accessor_name = '_set' + UpperCase(id)
if not hasattr(property_holder, accessor_name) or prop.get('override',0):
setattr(property_holder, accessor_name, base_accessor.dummy_copy(accessor_name))
accessor_name = '_baseSet' + UpperCase(id)
if not hasattr(property_holder, accessor_name) or prop.get('override',0): if not hasattr(property_holder, accessor_name) or prop.get('override',0):
setattr(property_holder, accessor_name, base_accessor.dummy_copy(accessor_name)) setattr(property_holder, accessor_name, base_accessor.dummy_copy(accessor_name))
# Default Getter # Default Getter
...@@ -1464,7 +1467,10 @@ def createDefaultAccessors(property_holder, id, prop = None, ...@@ -1464,7 +1467,10 @@ def createDefaultAccessors(property_holder, id, prop = None,
if not hasattr(property_holder, accessor_name) or prop.get('override',0): if not hasattr(property_holder, accessor_name) or prop.get('override',0):
setattr(property_holder, accessor_name, base_accessor) setattr(property_holder, accessor_name, base_accessor)
property_holder.security.declareProtected( write_permission, accessor_name ) property_holder.security.declareProtected( write_permission, accessor_name )
accessor_name = 'baseSetDefault' + UpperCase(id) accessor_name = '_setDefault' + UpperCase(id)
if not hasattr(property_holder, accessor_name) or prop.get('override',0):
setattr(property_holder, accessor_name, base_accessor.dummy_copy(accessor_name))
accessor_name = '_baseSetDefault' + UpperCase(id)
if not hasattr(property_holder, accessor_name) or prop.get('override',0): if not hasattr(property_holder, accessor_name) or prop.get('override',0):
setattr(property_holder, accessor_name, base_accessor.dummy_copy(accessor_name)) setattr(property_holder, accessor_name, base_accessor.dummy_copy(accessor_name))
# List Getter # List Getter
......
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