Commit e5f844c0 authored by Nicolas Delaby's avatar Nicolas Delaby

Revert http://svn.erp5.org?rev=34906&view=rev

This can not work for documents who carry 
the both properties(data & text_content) like Events.
A better fix will applied after peer approval.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34913 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 57daf3fe
......@@ -291,15 +291,6 @@ 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