Commit 4840cfbe authored by Yusei Tahara's avatar Yusei Tahara

guarantee the return value is string.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18481 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9a6aae9b
......@@ -1066,7 +1066,7 @@ class Document(XMLObject, UrlMixIn, ConversionCacheMixin, SnapshotMixin):
Converts the content of the document to a textual representation.
"""
mime, data = self.convert(format='txt')
return data
return str(data)
security.declareProtected(Permissions.View, 'asEntireHTML')
def asEntireHTML(self):
......
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