Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
erp5
Commits
28febdb6
Commit
28febdb6
authored
Mar 31, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_catalog: Explicilty add manage option tabs in Catalog Tool
parent
62b3c370
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
product/ERP5Catalog/Tool/ERP5CatalogTool.py
product/ERP5Catalog/Tool/ERP5CatalogTool.py
+11
-10
No files found.
product/ERP5Catalog/Tool/ERP5CatalogTool.py
View file @
28febdb6
...
...
@@ -56,16 +56,17 @@ class ERP5CatalogTool(BaseTool, CMFCore_CatalogTool):
# Declarative security
security
=
ClassSecurityInfo
()
# Use all manage tab options from Folder except the one with label 'View',
# cause we would be forcing view to display absolute_url+'/view', as
# portal_catalog is a callable object
folder_manage_option
=
tuple
([
l
for
l
in
Folder
.
manage_options
if
\
not
l
[
'label'
]
==
'View'
])
manage_options
=
({
'label'
:
'View'
,
'action'
:
'view'
},
{
'label'
:
'Overview'
,
'action'
:
'manage_overview'
},
{
'label'
:
'Catalog'
,
'action'
:
'manage_catalogView'
},
)
+
folder_manage_option
# Explicitly add tabs for manage_options
manage_options
=
({
'label'
:
'View'
,
'action'
:
'view'
},
{
'label'
:
'Contents'
,
'action'
:
'manage_main'
},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
},
{
'label'
:
'Undo'
,
'action'
:
'manage_UndoForm'
},
{
'label'
:
'Ownership'
,
'action'
:
'manage_owner'
},
{
'label'
:
'Interfaces'
,
'action'
:
'manage_interfaces'
},
{
'label'
:
'Find'
,
'action'
:
'manage_findForm'
},
{
'label'
:
'History'
,
'action'
:
'manage_change_history_page'
},
{
'label'
:
'Workflows'
,
'action'
:
'manage_workflowsTab'
},
)
property_sheets
=
(
PropertySheet
.
Base
,
PropertySheet
.
SimpleItem
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment