Skip to content

Commit

Permalink
Bring back the 'View' tab on Image/File and DTML Document/Method.
Browse files Browse the repository at this point in the history
This partially reverts commit 735105d.
  • Loading branch information
stephan-hof committed Jul 23, 2017
1 parent 08bab7e commit a06d3fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/OFS/DTMLMethod.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class DTMLMethod(RestrictedDTML,

manage_options = ((
{'label': 'Edit', 'action': 'manage_main'},
{'label': 'View', 'action': ''},
{'label': 'Proxy', 'action': 'manage_proxyForm'},
) +
RoleManager.manage_options +
Expand Down
8 changes: 6 additions & 2 deletions src/OFS/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ class File(Persistent, Implicit, PropertyManager,
manage_uploadForm = manage_editForm

manage_options = (
({'label': 'Edit', 'action': 'manage_main'}, ) +
(
{'label': 'Edit', 'action': 'manage_main'},
{'label': 'View', 'action': ''},
) +
PropertyManager.manage_options +
RoleManager.manage_options +
Item_w__name__.manage_options +
Expand Down Expand Up @@ -824,7 +827,8 @@ class Image(File):
)

manage_options = (
({'label': 'Edit', 'action': 'manage_main'}, ) +
({'label': 'Edit', 'action': 'manage_main'},
{'label': 'View', 'action': 'view_image_or_file'}) +
RoleManager.manage_options +
Item_w__name__.manage_options +
Cacheable.manage_options
Expand Down

0 comments on commit a06d3fb

Please sign in to comment.