[Erp5-report] r28951 - /erp5/trunk/products/ERP5/Document/File.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Sep 11 14:39:08 CEST 2009


Author: nicolas
Date: Fri Sep 11 14:39:07 2009
New Revision: 28951

URL: http://svn.erp5.org?rev=28951&view=rev
Log:
add else statement to define content_type variable

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=28951&r1=28950&r2=28951&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/File.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/File.py [utf8] Fri Sep 11 14:39:07 2009
@@ -169,6 +169,8 @@
       content_type,enc = mimetypes.guess_type(fname)
       if content_type is not None:
         self.setContentType(content_type)
+    else:
+      content_type = None
     return content_type
 
   security.declareProtected(Permissions.ModifyPortalContent,'PUT')




More information about the Erp5-report mailing list