Commit a9779776 authored by Nicolas Delaby's avatar Nicolas Delaby

No need to read filename from file object, contribution_tool is now able to do it

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42830 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b6739db9
......@@ -100,9 +100,7 @@ if url is not None:\n
filename=document.getId()\n
else:\n
# contribute file\n
filename = getattr(file, \'filename\', None)\n
document_kw.update({\'file\': file,\n
\'filename\': filename,})\n
document_kw.update({\'file\': file})\n
document = portal_contributions.newContent(**document_kw)\n
\n
is_existing_document_updated = False\n
......
131
\ No newline at end of file
132
\ No newline at end of file
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