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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 2 16:51:07 CEST 2010


Author: fabien
Date: Thu Sep  2 16:51:03 2010
New Revision: 38128

URL: http://svn.erp5.org?rev=38128&view=rev
Log:
revert r38119. I cannot give any explanation to this revert as it is an
order without explanations, sorry

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=38128&r1=38127&r2=38128&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/ContributionTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/ContributionTool.py [utf8] Thu Sep  2 16:51:03 2010
@@ -170,6 +170,8 @@ 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