Commit 4f5c12e5 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Use standard id generation in copy/paste rather than copy_of_... approach of zope


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5227 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent add5abab
...@@ -134,6 +134,10 @@ class FolderMixIn(ExtensionClass.Base, CopyContainer): ...@@ -134,6 +134,10 @@ 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)
......
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