Commit 9363f4ce authored by Alexandre Boeglin's avatar Alexandre Boeglin

Fixed wrongly named accessors

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7133 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c1bf02d2
No related merge requests found
...@@ -1388,7 +1388,7 @@ def createDefaultAccessors(property_holder, id, prop = None, ...@@ -1388,7 +1388,7 @@ 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( read_permission, accessor_name ) property_holder.security.declareProtected( read_permission, accessor_name )
accessor_name = '_baseGet' + UpperCase(id) accessor_name = '_baseGet' + UpperCase(composed_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
...@@ -1412,7 +1412,7 @@ def createDefaultAccessors(property_holder, id, prop = None, ...@@ -1412,7 +1412,7 @@ 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( read_permission, accessor_name ) property_holder.security.declareProtected( read_permission, accessor_name )
accessor_name = '_baseGetDefault' + UpperCase(id) accessor_name = '_baseGetDefault' + UpperCase(composed_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
...@@ -1439,10 +1439,10 @@ def createDefaultAccessors(property_holder, id, prop = None, ...@@ -1439,10 +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 = '_set' + UpperCase(id) accessor_name = '_set' + UpperCase(composed_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))
accessor_name = '_baseSet' + UpperCase(id) accessor_name = '_baseSet' + UpperCase(composed_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
...@@ -1467,10 +1467,10 @@ def createDefaultAccessors(property_holder, id, prop = None, ...@@ -1467,10 +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 = '_setDefault' + UpperCase(id) accessor_name = '_setDefault' + UpperCase(composed_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))
accessor_name = '_baseSetDefault' + UpperCase(id) accessor_name = '_baseSetDefault' + UpperCase(composed_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