Commit b0066bb0 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Added more dummy copies of accessors

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4505 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 49129a4a
......@@ -1255,6 +1255,7 @@ def createDefaultAccessors(property_holder, id, prop = None,
setattr(property_holder, accessor_name, base_accessor.dummy_copy(accessor_name))
property_holder.security.declareProtected( read_permission, accessor_name )
accessor_name = '_baseGet' + UpperCase(id)
base_accessor = base_accessor.dummy_copy(accessor_name)
if not hasattr(property_holder, accessor_name) or prop.get('override',0):
setattr(property_holder, accessor_name, base_accessor.dummy_copy(accessor_name))
# Default Getter
......@@ -1634,6 +1635,7 @@ def createDefaultAccessors(property_holder, id, prop = None,
setattr(property_holder, accessor_name, accessor)
property_holder.security.declareProtected( read_permission, accessor_name )
accessor_name = '_baseGet' + UpperCase(id)
accessor = accessor.dummy_copy(accessor_name)
if not hasattr(property_holder, accessor_name) or prop.get('override',0):
setattr(property_holder, accessor_name, accessor.dummy_copy(accessor_name))
######################################################
......
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