Commit bea0c30e authored by Jérome Perrin's avatar Jérome Perrin

group class inheritance fixes together


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19708 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4a4c682b
...@@ -382,6 +382,8 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn, ...@@ -382,6 +382,8 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn,
edit = Base.edit edit = Base.edit
security.declareProtected( Permissions.ModifyPortalContent, '_edit' ) security.declareProtected( Permissions.ModifyPortalContent, '_edit' )
_edit = Base._edit _edit = Base._edit
security.declareProtected( Permissions.ModifyPortalContent, 'setTitle' )
setTitle = Base.setTitle
_setPropValue = Base._setPropValue _setPropValue = Base._setPropValue
_propertyMap = Base._propertyMap # are there any others XXX ? _propertyMap = Base._propertyMap # are there any others XXX ?
PUT_factory = WebDAVFolder.PUT_factory PUT_factory = WebDAVFolder.PUT_factory
...@@ -1363,7 +1365,6 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn, ...@@ -1363,7 +1365,6 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn,
# Override security declaration of CMFCore/PortalFolder (used by CMFBTreeFolder) # Override security declaration of CMFCore/PortalFolder (used by CMFBTreeFolder)
security.declareProtected(Permissions.ModifyPortalContent,'setDescription') security.declareProtected(Permissions.ModifyPortalContent,'setDescription')
security.declareProtected( Permissions.ModifyPortalContent, 'setTitle' )
# XXX Why this one doesn't work in CopySupport ? # XXX Why this one doesn't work in CopySupport ?
security.declareProtected( Permissions.AccessContentsInformation, security.declareProtected( Permissions.AccessContentsInformation,
...@@ -1463,5 +1464,3 @@ for source_klass, destination_klass in \ ...@@ -1463,5 +1464,3 @@ for source_klass, destination_klass in \
# Zope 2.7 required to have methodId__roles__ defined # Zope 2.7 required to have methodId__roles__ defined
# to know the security ot the method # to know the security ot the method
setattr(destination_klass, method_id+'__roles__', None) setattr(destination_klass, method_id+'__roles__', None)
# Overwrite Zope setTitle()
Folder.setTitle = Base.setTitle
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