Commit 7d66daf2 authored by Nicolas Delaby's avatar Nicolas Delaby

Remove this hardcoded portal_transform policy as it should be defined by default

on portal_transforms by Business Template installation.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31222 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2755a7be
...@@ -207,9 +207,6 @@ class TestERP5Web(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -207,9 +207,6 @@ class TestERP5Web(ERP5TypeTestCase, ZopeTestCase.Functional):
ZopeTestCase._print(message) ZopeTestCase._print(message)
# disable portal_transforms cache # disable portal_transforms cache
self.portal.portal_transforms.max_sec_in_cache=-1 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 = self.web_page_module.newContent(portal_type='Web Page')
page.edit(text_content='<p>Hé Hé Hé!</p>') page.edit(text_content='<p>Hé Hé Hé!</p>')
transaction.commit() transaction.commit()
...@@ -931,9 +928,6 @@ Hé Hé Hé!""", page.asText().strip()) ...@@ -931,9 +928,6 @@ Hé Hé Hé!""", page.asText().strip())
portal = self.getPortal() portal = self.getPortal()
request = portal.REQUEST request = portal.REQUEST
request['PARENTS'] = [self.app] 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() website = self.setupWebSite()
web_section_portal_type = 'Web Section' web_section_portal_type = 'Web Section'
web_section = website.newContent(portal_type=web_section_portal_type) 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