[Erp5-report] r38828 fabien - /erp5/trunk/products/ERP5/Document/TextDocument.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Oct 1 11:59:28 CEST 2010


Author: fabien
Date: Fri Oct  1 11:59:27 2010
New Revision: 38828

URL: http://svn.erp5.org?rev=38828&view=rev
Log:
add comment to previous commit

Modified:
    erp5/trunk/products/ERP5/Document/TextDocument.py

Modified: erp5/trunk/products/ERP5/Document/TextDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TextDocument.py?rev=38828&r1=38827&r2=38828&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TextDocument.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TextDocument.py [utf8] Fri Oct  1 11:59:27 2010
@@ -127,6 +127,9 @@ class TextDocument(CachedConvertableMixi
       """
         Convert text using portal_transforms or oood
       """
+      # XXX 'or DEFAULT_CONTENT_TYPE' is compaptibility code used for old
+      # web_page that have neither content_type nor text_format. Migration 
+      # should be done to make all web page having content_type property
       src_mimetype = self.getContentType() or DEFAULT_CONTENT_TYPE
       if not format and src_mimetype == 'text/html':
         format = 'html' # Force safe_html




More information about the Erp5-report mailing list