Commit f105890b authored by Nicolas Delaby's avatar Nicolas Delaby

provide filename from filename property

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42831 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a9779776
...@@ -97,7 +97,6 @@ if url is not None:\n ...@@ -97,7 +97,6 @@ if url is not None:\n
redirect_url= \'%s?%s\' %(cancel_url, \n redirect_url= \'%s?%s\' %(cancel_url, \n
make_query(dict(portal_status_message=translateString("Wrong or not accessible URL address."))))\n make_query(dict(portal_status_message=translateString("Wrong or not accessible URL address."))))\n
return context.REQUEST.RESPONSE.redirect(redirect_url)\n return context.REQUEST.RESPONSE.redirect(redirect_url)\n
filename=document.getId()\n
else:\n else:\n
# contribute file\n # contribute file\n
document_kw.update({\'file\': file})\n document_kw.update({\'file\': file})\n
...@@ -109,6 +108,7 @@ if synchronous_metadata_discovery:\n ...@@ -109,6 +108,7 @@ if synchronous_metadata_discovery:\n
# this in an activity\n # this in an activity\n
if document.isSupportBaseDataConversion():\n if document.isSupportBaseDataConversion():\n
document.processFile()\n document.processFile()\n
filename = document.getFilename()\n
merged_document = document.Document_convertToBaseFormatAndDiscoverMetadata(\n merged_document = document.Document_convertToBaseFormatAndDiscoverMetadata(\n
filename=filename,\n filename=filename,\n
user_login=user_login,\n user_login=user_login,\n
......
132 134
\ No newline at end of file \ 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