Commit 27d8fbc0 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Fixed wrong accessor type for List accessor generation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10054 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c95bc5dd
...@@ -1644,7 +1644,7 @@ def createDefaultAccessors(property_holder, id, prop = None, ...@@ -1644,7 +1644,7 @@ def createDefaultAccessors(property_holder, id, prop = None,
property_holder.security.declareProtected( read_permission, accessor_name ) property_holder.security.declareProtected( read_permission, accessor_name )
accessor_name = '_baseGet' + UpperCase(id) + 'Set' accessor_name = '_baseGet' + UpperCase(id) + 'Set'
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, list_accessor.dummy_copy(accessor_name)) setattr(property_holder, accessor_name, set_accessor.dummy_copy(accessor_name))
elif prop['type'] == 'content': elif prop['type'] == 'content':
# Create url getters for an object property # Create url getters for an object property
accessor_name = 'get' + UpperCase(id) accessor_name = 'get' + UpperCase(id)
...@@ -1892,7 +1892,7 @@ def createDefaultAccessors(property_holder, id, prop = None, ...@@ -1892,7 +1892,7 @@ def createDefaultAccessors(property_holder, id, prop = None,
storage_id = prop.get('storage_id')) storage_id = prop.get('storage_id'))
# The list setter sets the whole list # The list setter sets the whole list
setter_name = '_set' + UpperCase(id) + 'Set' setter_name = '_set' + UpperCase(id) + 'Set'
list_setter = List.SetSetter(setter_name, id, prop['type'], reindex=0, set_setter = List.SetSetter(setter_name, id, prop['type'], reindex=0,
storage_id = prop.get('storage_id')) storage_id = prop.get('storage_id'))
# Create setters for a list property # Create setters for a list property
setter_name = '_set' + UpperCase(id) setter_name = '_set' + UpperCase(id)
......
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