Commit 6d5f29d9 authored by Jean-Paul Smets's avatar Jean-Paul Smets

fix inheritance


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5228 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4f5c12e5
...@@ -134,10 +134,6 @@ class FolderMixIn(ExtensionClass.Base, CopyContainer): ...@@ -134,10 +134,6 @@ class FolderMixIn(ExtensionClass.Base, CopyContainer):
return str(my_id) return str(my_id)
def _get_id(self, id):
# Override Zope default by folder id generation
self.generateNewId()
security.declareProtected(Permissions.View, 'hasContent') security.declareProtected(Permissions.View, 'hasContent')
def hasContent(self,id): def hasContent(self,id):
return self.hasObject(id) return self.hasObject(id)
...@@ -301,6 +297,10 @@ be a problem).""" ...@@ -301,6 +297,10 @@ be a problem)."""
_setPropValue = Base._setPropValue _setPropValue = Base._setPropValue
_propertyMap = Base._propertyMap # are there any others XXX ? _propertyMap = Base._propertyMap # are there any others XXX ?
# Override Zope default by folder id generation
def _get_id(self, id):
self.generateNewId()
#security.declareProtected( Permissions.DeletePortalContent, 'manage_delObjects' ) #security.declareProtected( Permissions.DeletePortalContent, 'manage_delObjects' )
#manage_delObjects = CopyContainer.manage_delObjects #manage_delObjects = CopyContainer.manage_delObjects
......
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