Commit 6c65a687 authored by Fabien Morin's avatar Fabien Morin

trust id_generator from the module to generate good ids. We don't want to

generate each time the same id for a given url. Contributing two times a same
url should result in the creation of two documents with same reference but
different version. Reference and Version can not be set here because probably
each project will want a different reference/version style.

Thierry approve this change.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38119 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 458a5ab5
......@@ -170,8 +170,6 @@ class ContributionTool(BaseTool):
file_name = url.split('/')[-1] or url.split('/')[-2]
file_name = urllib.quote(file_name, safe='')
file_name = file_name.replace('%', '')
# For URLs, we want an id by default equal to the encoded URL
if id is None: id = self.encodeURL(url)
if hasattr(url_file, 'headers'):
headers = url_file.headers
if hasattr(headers, 'type'):
......
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