Commit b2070108 authored by Nicolas Dumazet's avatar Nicolas Dumazet

fix property accessors on processed accessors


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42869 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 93f6fe38
......@@ -187,7 +187,12 @@ def _generatePreferenceToolAccessorHolder(portal, accessor_holder_list,
# XXX read_permission and write_permissions defined at
# property sheet are not respected by this.
# only properties marked as preference are used
# properties have already been 'converted' and _list is appended
# to list_types properties
attribute = prop['id']
if attribute.endswith('_list'):
attribute = prop['base_id']
attr_list = [ 'get%s' % convertToUpperCase(attribute)]
if prop['type'] == 'boolean':
attr_list.append('is%s' % convertToUpperCase(attribute))
......
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