Commit 5d9b3c7c authored by Yoshinori Okuji's avatar Yoshinori Okuji

Generate free text accessors.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5237 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c675aedc
......@@ -1072,6 +1072,18 @@ def setDefaultProperties(property_holder, object=None):
prop['type']
# Create Category Accessors
for cat in cat_list:
# Create free text accessors.
prop = {
'id' : '%s_free_text' % cat,
'description': 'free text to specify %s' % cat,
'type' : 'text',
'default' : '',
'mode' : 'w'
}
createDefaultAccessors(property_holder, prop['id'], prop=prop,
read_permission=Permissions.AccessContentsInformation,
write_permission=Permissions.ModifyPortalContent)
# Get read and write permission
if object is not None:
cat_object = object.getPortalObject().portal_categories.get(cat, None)
......
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