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): ...@@ -169,16 +169,16 @@ class CategoryProperty(XMLObject):
elif category_id == 'site': elif category_id == 'site':
storage_id = 'location' storage_id = 'location'
StandardProperty.applyPropertyOnAccessorHolder( property_dict = {'reference': '%s_free_text' % category_id,
accessor_holder=accessor_holder, 'elementary_type': 'text',
portal=category_tool.getPortalObject(), 'property_default': '',
reference='%s_free_text' % category_id, 'multivalued': False,
elementary_type='text', 'storage_id': storage_id,
multivalued=False, 'read_permission': Permissions.AccessContentsInformation,
property_default='', 'write_permission': Permissions.ModifyPortalContent}
storage_id=storage_id,
read_permission=Permissions.AccessContentsInformation, StandardProperty._applyOnAccessorHolder(property_dict, accessor_holder,
write_permission=Permissions.ModifyPortalContent) category_tool.getPortalObject())
# Get read and write permission # Get read and write permission
read_permission = Permissions.__dict__.get(cat_object.getReadPermission(), 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