Commit ab6e0b51 authored by Nicolas Delaby's avatar Nicolas Delaby

Since Object doesn't use filename as id, try to guess it in alternate way


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24470 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d4979e8c
......@@ -266,6 +266,7 @@ class ContributionTool(BaseTool):
if 'set_filename__' in inspect.getargspec(document._edit)[0]:
# Only a few classes supports set_filename__.
document._edit(set_filename__=0, **kw)
document.guessMimeType(fname=file_name)
else:
document._edit(**kw)
if url:
......
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