From 6c65a68787d18d21d577297aab2fa7b75a8d3927 Mon Sep 17 00:00:00 2001 From: Fabien Morin <fabien@nexedi.com> Date: Thu, 2 Sep 2010 07:58:47 +0000 Subject: [PATCH] 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 --- product/ERP5/Tool/ContributionTool.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/product/ERP5/Tool/ContributionTool.py b/product/ERP5/Tool/ContributionTool.py index f079cb7bfe..26b14361de 100644 --- a/product/ERP5/Tool/ContributionTool.py +++ b/product/ERP5/Tool/ContributionTool.py @@ -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'): -- 2.30.9