Skip to content

Commit

Permalink
- Restore the mistakenly removed Properties tab on Image objects (fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Oct 13, 2019
1 parent 46eeee3 commit ab77e9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ https://github.com/zopefoundation/Zope/blob/4.x/CHANGES.rst
5.0a1 (unreleased)
------------------

- Restore the mistakenly removed Properties ZMI tab on Image objects
(`#706 <https://github.com/zopefoundation/Zope/issues/706>`_)

- Fix ``OFS.Image.File.__str__`` for ``Pdata`` contents
(`#711 <https://github.com/zopefoundation/Zope/issues/711>`_)

Expand Down
13 changes: 3 additions & 10 deletions src/OFS/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,16 +828,9 @@ class Image(File):
)

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

0 comments on commit ab77e9e

Please sign in to comment.