Commit 28febdb6 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Explicilty add manage option tabs in Catalog Tool

parent 62b3c370
...@@ -56,16 +56,17 @@ class ERP5CatalogTool(BaseTool, CMFCore_CatalogTool): ...@@ -56,16 +56,17 @@ class ERP5CatalogTool(BaseTool, CMFCore_CatalogTool):
# Declarative security # Declarative security
security = ClassSecurityInfo() security = ClassSecurityInfo()
# Use all manage tab options from Folder except the one with label 'View', # Explicitly add tabs for manage_options
# cause we would be forcing view to display absolute_url+'/view', as manage_options = ({'label': 'View', 'action': 'view'},
# portal_catalog is a callable object {'label': 'Contents', 'action': 'manage_main'},
folder_manage_option = tuple([l for l in Folder.manage_options if \ {'label': 'Security', 'action': 'manage_access'},
not l['label']=='View']) {'label': 'Undo', 'action': 'manage_UndoForm'},
{'label': 'Ownership', 'action': 'manage_owner'},
manage_options = ({ 'label' : 'View', 'action' : 'view'}, {'label': 'Interfaces', 'action': 'manage_interfaces'},
{ 'label' : 'Overview', 'action' : 'manage_overview' }, {'label': 'Find', 'action': 'manage_findForm'},
{ 'label' : 'Catalog', 'action' : 'manage_catalogView'}, {'label': 'History', 'action': 'manage_change_history_page'},
) + folder_manage_option {'label': 'Workflows', 'action': 'manage_workflowsTab'},
)
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
, PropertySheet.SimpleItem , PropertySheet.SimpleItem
......
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