[Erp5-report] r28947 - /erp5/trunk/products/ERP5/Document/File.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Sep 11 14:18:53 CEST 2009
Author: nicolas
Date: Fri Sep 11 14:18:53 2009
New Revision: 28947
URL: http://svn.erp5.org?rev=28947&view=rev
Log:
orignal_filename does not exists, source_reference is used to store the original filename
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=28947&r1=28946&r2=28947&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/File.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/File.py [utf8] Fri Sep 11 14:18:53 2009
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
@@ -163,7 +164,7 @@
"""
get mime type from file name
"""
- if fname == '': fname = self.getOriginalFilename()
+ if fname == '': fname = self.getSourceReference()
if fname:
content_type,enc = mimetypes.guess_type(fname)
if content_type is not None:
More information about the Erp5-report
mailing list