Commit c2ec3c22 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Move source reference setting to where it better belongs. (and make sure any...

Move source reference setting to where it better belongs. (and make sure any kind of file can be provides, including thoses which do not support the filename attribute).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13467 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eb05da5e
......@@ -115,12 +115,6 @@ class File(Document, CMFFile, ConversionCacheMixin):
security.declareProtected( Permissions.ModifyPortalContent, 'edit' )
edit = WorkflowMethod( _edit )
security.declareProtected(Permissions.ModifyPortalContent, 'manage_upload')
def manage_upload(self, file='', REQUEST=''):
res = CMFFile.manage_upload(self, file, REQUEST)
self.setSourceReference(file.filename)
return res
# Copy support needs to be implemented by ExtFile
################################
# Special management methods #
......
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