Commit 74178717 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Instead of specifying storage_id for all categories, use storage_id only for group and site.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5269 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fbbd2a24
......@@ -1075,12 +1075,16 @@ def setDefaultProperties(property_holder, object=None):
# Create free text accessors.
prop = {
'id' : '%s_free_text' % cat,
'storage_id' : cat,
'description': 'free text to specify %s' % cat,
'type' : 'text',
'default' : '',
'mode' : 'w'
}
# XXX These are only for backward compatibility.
if cat == 'group':
prop['storage_id'] = 'group'
elif cat == 'site':
prop['storage_id'] = 'location'
createDefaultAccessors(property_holder, prop['id'], prop=prop,
read_permission=Permissions.AccessContentsInformation,
write_permission=Permissions.ModifyPortalContent)
......
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