[Erp5-report] r38119 fabien - /erp5/trunk/products/ERP5/Tool/ContributionTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 2 09:58:47 CEST 2010


Author: fabien
Date: Thu Sep  2 09:58:47 2010
New Revision: 38119

URL: http://svn.erp5.org?rev=38119&view=rev
Log:
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.

Modified:
    erp5/trunk/products/ERP5/Tool/ContributionTool.py

Modified: erp5/trunk/products/ERP5/Tool/ContributionTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/ContributionTool.py?rev=38119&r1=38118&r2=38119&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/ContributionTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/ContributionTool.py [utf8] Thu Sep  2 09:58:47 2010
@@ -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'):




More information about the Erp5-report mailing list