[Erp5-report] r35620 fabien - /erp5/trunk/products/ERP5/Tool/ContributionTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue May 25 16:33:42 CEST 2010
Author: fabien
Date: Tue May 25 16:33:41 2010
New Revision: 35620
URL: http://svn.erp5.org?rev=35620&view=rev
Log:
set the content_type using the type attribute of the headers
reviewed by nicolas
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=35620&r1=35619&r2=35620&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/ContributionTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/ContributionTool.py [utf8] Tue May 25 16:33:41 2010
@@ -176,6 +176,7 @@
headers = url_file.headers
if hasattr(headers, 'type'):
mime_type = headers.type
+ kw['content_type'] = mime_type
kw['file'] = file
# If the portal_type was provided, we can go faster
More information about the Erp5-report
mailing list