Commit b4b77167 authored by Ivan Tyagov's avatar Ivan Tyagov

Fix unbound error.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35727 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f25e9f68
...@@ -101,11 +101,11 @@ if url is not None:\n ...@@ -101,11 +101,11 @@ if url is not None:\n
else:\n else:\n
# contribute file\n # contribute file\n
file_name = getattr(file, \'filename\', None)\n file_name = getattr(file, \'filename\', None)\n
is_existing_document_updated = False\n
document_kw.update({\'file\': file,\n document_kw.update({\'file\': file,\n
\'file_name\': file_name,})\n \'file_name\': file_name,})\n
document = portal_contributions.newContent(**document_kw)\n document = portal_contributions.newContent(**document_kw)\n
\n \n
is_existing_document_updated = False\n
if synchronous_metadata_discovery:\n if synchronous_metadata_discovery:\n
# we need to do all synchronously, in other case portal_contributions will do\n # we need to do all synchronously, in other case portal_contributions will do\n
# this in an activity\n # this in an activity\n
......
101 102
\ 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