Commit fc1b9d74 authored by Jérome Perrin's avatar Jérome Perrin

TextDocument: fix incorrect warning

parent f6d7f797
...@@ -392,7 +392,7 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin, ...@@ -392,7 +392,7 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin,
""" """
""" """
LOG('TextDocument', WARNING, LOG('TextDocument', WARNING,
'Usage of text_format is deprecated, use text_content instead') 'Usage of text_format is deprecated, use content_type instead')
return self.getContentType(default) return self.getContentType(default)
security.declareProtected(Permissions.ModifyPortalContent, 'setTextFormat') security.declareProtected(Permissions.ModifyPortalContent, 'setTextFormat')
...@@ -400,7 +400,7 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin, ...@@ -400,7 +400,7 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin,
""" """
""" """
LOG('TextDocument', WARNING, LOG('TextDocument', WARNING,
'Usage of text_format is deprecated, use text_content instead') 'Usage of text_format is deprecated, use content_type instead')
return self.setContentType(value) return self.setContentType(value)
security.declareProtected(Permissions.ModifyPortalContent, security.declareProtected(Permissions.ModifyPortalContent,
...@@ -409,7 +409,7 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin, ...@@ -409,7 +409,7 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin,
""" """
""" """
LOG('TextDocument', WARNING, LOG('TextDocument', WARNING,
'Usage of text_format is deprecated, use text_content instead') 'Usage of text_format is deprecated, use content_type instead')
return self._setContentType(value) return self._setContentType(value)
def getData(self, default=_MARKER): def getData(self, default=_MARKER):
......
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