Commit d0b807ae authored by Romain Courteaud's avatar Romain Courteaud

Do not call CMFFile methods, in order to keep local roles on pasted File.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19723 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 771fa267
...@@ -130,22 +130,6 @@ class File(Document, CMFFile, ConversionCacheMixin): ...@@ -130,22 +130,6 @@ class File(Document, CMFFile, ConversionCacheMixin):
security.declareProtected( Permissions.ModifyPortalContent, 'edit' ) security.declareProtected( Permissions.ModifyPortalContent, 'edit' )
edit = WorkflowMethod( _edit ) edit = WorkflowMethod( _edit )
# Copy support needs to be implemented by ExtFile
################################
# Special management methods #
################################
def manage_afterClone(self, item):
Base.manage_afterClone(self, item)
CMFFile.manage_afterClone(self, item)
def manage_afterAdd(self, item, container):
Base.manage_afterAdd(self, item, container)
CMFFile.manage_afterAdd(self, item, container)
def manage_beforeDelete(self, item, container):
CMFFile.manage_beforeDelete(self, item, container)
def get_size(self): def get_size(self):
""" """
has to be overwritten here, otherwise WebDAV fails has to be overwritten here, otherwise WebDAV fails
......
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