[Erp5-report] r28948 - /erp5/trunk/products/ERP5/Document/File.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Sep 11 14:25:11 CEST 2009
Author: nicolas
Date: Fri Sep 11 14:25:06 2009
New Revision: 28948
URL: http://svn.erp5.org?rev=28948&view=rev
Log:
Use accessor
Modified:
erp5/trunk/products/ERP5/Document/File.py
Modified: erp5/trunk/products/ERP5/Document/File.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/File.py?rev=28948&r1=28947&r2=28948&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/File.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/File.py [utf8] Fri Sep 11 14:25:06 2009
@@ -168,7 +168,7 @@
if fname:
content_type,enc = mimetypes.guess_type(fname)
if content_type is not None:
- self.content_type = content_type
+ self.setContentType(content_type)
return content_type
security.declareProtected(Permissions.ModifyPortalContent,'PUT')
More information about the Erp5-report
mailing list