Commit 24599175 authored by Fabien Morin's avatar Fabien Morin

add comment to previous commit


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38828 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7ffc99ef
......@@ -127,6 +127,9 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin,
"""
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment