Commit c3e64047 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Accessors generation without Utils now use property_dict


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43395 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 38f7f9ab
......@@ -169,16 +169,16 @@ class CategoryProperty(XMLObject):
elif category_id == 'site':
storage_id = 'location'
StandardProperty.applyPropertyOnAccessorHolder(
accessor_holder=accessor_holder,
portal=category_tool.getPortalObject(),
reference='%s_free_text' % category_id,
elementary_type='text',
multivalued=False,
property_default='',
storage_id=storage_id,
read_permission=Permissions.AccessContentsInformation,
write_permission=Permissions.ModifyPortalContent)
property_dict = {'reference': '%s_free_text' % category_id,
'elementary_type': 'text',
'property_default': '',
'multivalued': False,
'storage_id': storage_id,
'read_permission': Permissions.AccessContentsInformation,
'write_permission': Permissions.ModifyPortalContent}
StandardProperty._applyOnAccessorHolder(property_dict, accessor_holder,
category_tool.getPortalObject())
# Get read and write permission
read_permission = Permissions.__dict__.get(cat_object.getReadPermission(),
......
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