Commit 4124026d authored by Ivan Tyagov's avatar Ivan Tyagov

Set file name.

This can help backend (oood) determine proper writer/import filters based on file extensions built in patterns.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31398 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ef262d11
No related merge requests found
......@@ -88,6 +88,8 @@ merged_content = None\n
\n
try:\n
new_content = context.portal_contributions.newContent(**kw)\n
# set file_name\n
new_content.setSourceReference(file_name)\n
if new_content.isSupportBaseDataConversion():\n
new_content.processFile()\n
merged_content = new_content.Document_convertToBaseFormatAndDiscoverMetadata(file_name=file_name)\n
......
854
\ No newline at end of file
855
\ 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