Commit 96300cc5 authored by Jérome Perrin's avatar Jérome Perrin

fix ZMI tabs for non folder types. It was not showing history tab


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28070 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7e4c8ea7
......@@ -40,6 +40,8 @@ from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.ZopeGuards import guarded_getattr
from Acquisition import aq_base, aq_inner, aq_acquire, aq_chain
import OFS.History
from OFS.SimpleItem import SimpleItem
from OFS.PropertyManager import PropertyManager
from Products.CMFCore.PortalContent import PortalContent
from Products.CMFCore.Expression import Expression
......@@ -791,7 +793,13 @@ class Base( CopyContainer,
)
# We want to use a default property view
manage_propertiesForm = DTMLFile( 'properties', _dtmldir )
manage_main = manage_propertiesForm = DTMLFile( 'properties', _dtmldir )
manage_options = ( PropertyManager.manage_options +
SimpleItem.manage_options +
OFS.History.Historical.manage_options +
CMFCatalogAware.manage_options
)
security.declareProtected( Permissions.ModifyPortalContent, 'setTitle' )
def setTitle(self, value):
......
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