Commit 69b41659 authored by Nicolas Delaby's avatar Nicolas Delaby

Coding style only

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35688 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8b27e95d
......@@ -62,7 +62,7 @@ from Products.ERP5.mixin.downloadable import DownloadableMixin
_MARKER = []
VALID_ORDER_KEY_LIST = ('user_login', 'content', 'file_name', 'input')
# these property ids are unchangable
FIXED_PROPERTY_IDS = ('id', 'uid', 'rid', 'sid')
FIXED_PROPERTY_IDS = ('id', 'uid', 'rid', 'sid')
VALID_TEXT_FORMAT_LIST = ('text', 'txt', 'html', 'base_html',
'stripped-html')
......
......@@ -254,7 +254,7 @@ class TextDocument(BaseConvertableAndFileMixin, CachedConvertableMixin,
return self.hasTextContent()
security.declareProtected(Permissions.AccessContentsInformation,
'getContentType')
'getContentType')
def getContentType(self, default=_MARKER):
"""Backward compatibility, read content_type
from text_format property
......
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