Commit d60b0f85 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Reverted r31222 due to lack of peer review

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31263 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b35294d3
......@@ -206,6 +206,9 @@ class TestERP5Web(ERP5TypeTestCase):
ZopeTestCase._print(message)
# disable portal_transforms cache
self.portal.portal_transforms.max_sec_in_cache=-1
# use w3m dump explicitly
self.portal.portal_transforms.manage_addPolicy(output_mimetype='text/plain',
required_transforms=['w3m_dump'])
page = self.web_page_module.newContent(portal_type='Web Page')
page.edit(text_content='<p>Hé Hé Hé!</p>')
transaction.commit()
......@@ -927,6 +930,9 @@ Hé Hé Hé!""", page.asText().strip())
portal = self.getPortal()
request = portal.REQUEST
request['PARENTS'] = [self.app]
# use w3m dump explicitly
self.portal.portal_transforms.manage_addPolicy(output_mimetype='text/plain',
required_transforms=['w3m_dump'])
website = self.setupWebSite()
web_section_portal_type = 'Web Section'
web_section = website.newContent(portal_type=web_section_portal_type)
......
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