Commit d37a2bd9 authored by Nicolas Delaby's avatar Nicolas Delaby

A TextDocument store its data in the "text_content" property. Since

there is no such thing as data in TextDocument, getting data
is equivalent to getting some text_content.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34906 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 43243d86
......@@ -291,6 +291,15 @@ class TextDocument(Document, TextContent):
"""
return self.hasTextContent()
security.declareProtected(Permissions.AccessContentsInformation, 'getData')
def getData(self):
"""
A TextDocument store its data in the "text_content" property. Since
there is no such thing as data in TextDocument, getting data
is equivalent to getting some text_content.
"""
return self.getTextContent()
security.declareProtected(Permissions.AccessContentsInformation, 'getMimeTypeAndContent')
def getMimeTypeAndContent(self):
"""This method returns a tuple which contains mimetype and content."""
......
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