Commit 84932b85 authored by Jérome Perrin's avatar Jérome Perrin

When creating a module, create the default view action with "object_list"...

When creating a module, create the default view action with "object_list" category, the action category for module views.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16634 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 154e85be
...@@ -98,14 +98,14 @@ module_portal_type_value.manage_changeProperties(\n ...@@ -98,14 +98,14 @@ module_portal_type_value.manage_changeProperties(\n
allowed_content_types = (object_portal_type_id, ))\n allowed_content_types = (object_portal_type_id, ))\n
\n \n
action_list = module_portal_type_value.listActions()\n action_list = module_portal_type_value.listActions()\n
module_portal_type_value.deleteActions(selections=range(0,len(action_list)))\n module_portal_type_value.deleteActions(selections=range(0, len(action_list)))\n
module_portal_type_value.addAction( "view"\n module_portal_type_value.addAction( "view"\n
, "View"\n , "View"\n
# FIXME: isn\'t it better to create a form for the module?\n # FIXME: isn\'t it better to create a form for the module?\n
, "string:${object_url}/Folder_viewContentList"\n , "string:${object_url}/Folder_viewContentList"\n
, ""\n , ""\n
, "View"\n , "View"\n
, "object_view"\n , "object_list"\n
, priority=1.0\n , priority=1.0\n
)\n )\n
\n \n
......
479 480
\ No newline at end of file \ No newline at end of file
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