Commit 1828b149 authored by Nicolas Delaby's avatar Nicolas Delaby

replace text_format by content_type

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35294 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent db07ba2d
......@@ -112,7 +112,7 @@ for attachment in context.getAggregateValueList():\n
\n
# Build message per destination\n
mail_message = None\n
if context.getTextFormat()==\'text/html\':\n
if context.getContentType() == \'text/html\':\n
mail_template = context.Event_viewHtmlMimeMessage\n
else:\n
mail_template = context.Event_viewMimeMessage\n
......
580
\ No newline at end of file
581
\ No newline at end of file
......@@ -193,7 +193,7 @@ class TestERP5Web(ERP5TypeTestCase):
ZopeTestCase._print(message)
page = self.web_page_module.newContent(portal_type='Web Page')
page.edit(text_content='<b>OK</b>')
self.assertEquals('text/html', page.getTextFormat())
self.assertEquals('text/html', page.getContentType())
self.assertEquals('<b>OK</b>', page.getTextContent())
def test_02a_WebPageAsText(self, quiet=quiet, run=run_all_test):
......
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