Commit dfe54fcb authored by Yoshinori Okuji's avatar Yoshinori Okuji

Tweak the default factory type information: correct the permission for...

Tweak the default factory type information: correct the permission for metadata, add history, and reorder the actions for convenience.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3318 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 78566b86
......@@ -530,19 +530,23 @@ def setDefaultClassProperties(document_class):
, 'action' : '%s_view' % document_class.__name__
, 'permissions' : ( Permissions.View, )
}
, { 'id' : 'print'
, 'name' : 'Print'
, 'category' : 'object_print'
, 'action' : '%s_print' % document_class.__name__
, 'permissions' : (
Permissions.View, )
, { 'id' : 'history'
, 'name' : 'History'
, 'category' : 'object_view'
, 'action' : 'Base_viewHistory'
, 'permissions' : ( Permissions.View, )
}
, { 'id' : 'metadata'
, 'name' : 'Metadata'
, 'category' : 'object_view'
, 'action' : 'Base_viewMetadata'
, 'permissions' : (
Permissions.View, )
, 'permissions' : ( Permissions.ManageProperties, )
}
, { 'id' : 'print'
, 'name' : 'Print'
, 'category' : 'object_print'
, 'action' : '%s_print' % document_class.__name__
, 'permissions' : ( Permissions.View, )
}
)
}
......
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