Commit 325b197d authored by Nicolas Delaby's avatar Nicolas Delaby

Reflect recent changes on TextDocument.

EmailDocument must not return text_content if data is empty
because EmailDocument is not base_convertable, data
and text_content might not be related each other.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41850 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 001b5d4d
......@@ -743,3 +743,8 @@ class EmailDocument(TextDocument):
XXX - Needs to be unified with Event methods
"""
self.MailHost.send(message)
# Because TextDocument is base_convertable and not EmailDocument.
# getData must be implemented like File.getData is.
security.declareProtected(Permissions.AccessContentsInformation, 'getData')
getData = File.getData
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