From 779b95768ece5419f9c0b61504f89f187026ee98 Mon Sep 17 00:00:00 2001 From: Fabien Morin <fabien@nexedi.com> Date: Fri, 1 Oct 2010 09:16:48 +0000 Subject: [PATCH] some old documents don't have any content_type defined git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38825 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/TextDocument.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/Document/TextDocument.py b/product/ERP5/Document/TextDocument.py index d1bf753c62..feb0560830 100644 --- a/product/ERP5/Document/TextDocument.py +++ b/product/ERP5/Document/TextDocument.py @@ -127,7 +127,7 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin, """ Convert text using portal_transforms or oood """ - src_mimetype = self.getContentType() + src_mimetype = self.getContentType() or DEFAULT_CONTENT_TYPE if not format and src_mimetype == 'text/html': format = 'html' # Force safe_html if not format: -- 2.30.9