Back to index

plone3  3.1.7
Public Member Functions | Private Member Functions | Private Attributes
CMFCore.tests.test_FSSTXMethod._TemplateSwitcher Class Reference
Inheritance diagram for CMFCore.tests.test_FSSTXMethod._TemplateSwitcher:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def setUp
def tearDown

Private Member Functions

def _setWhichTemplate

Private Attributes

 _old_STX_TEMPLATE

Detailed Description

Definition at line 72 of file test_FSSTXMethod.py.


Member Function Documentation

Definition at line 83 of file test_FSSTXMethod.py.

00083 
00084     def _setWhichTemplate(self, which):
00085         import Products.CMFCore.FSSTXMethod
00086         from Products.PageTemplates.ZopePageTemplate import ZopePageTemplate
00087         Products.CMFCore.FSSTXMethod._STX_TEMPLATE = which
00088 
00089         if which == 'DTML':
00090             self.root.standard_html_header = (
00091                     lambda *args, **kw: '<html>\n<body>\n')
00092             self.root.standard_html_footer = (
00093                     lambda *args, **kw: '</body>\n</html>\n')
00094         elif which == 'ZPT':
00095             main = ZopePageTemplate('main_template', _TEST_MAIN_TEMPLATE)
00096             self.root._setOb('main_template', main)

Here is the caller graph for this function:

Reimplemented in CMFCore.tests.test_FSSTXMethod.FSSTXMethodCustomizationTests, and CMFCore.tests.test_FSSTXMethod.FSSTXMethodTests.

Definition at line 74 of file test_FSSTXMethod.py.

00074 
00075     def setUp(self):
00076         import Products.CMFCore.FSSTXMethod
00077         self._old_STX_TEMPLATE = Products.CMFCore.FSSTXMethod._STX_TEMPLATE

Reimplemented in CMFCore.tests.test_FSSTXMethod.FSSTXMethodCustomizationTests, and CMFCore.tests.test_FSSTXMethod.FSSTXMethodTests.

Definition at line 78 of file test_FSSTXMethod.py.

00078 
00079     def tearDown(self):
00080         RequestTest.tearDown(self)
00081         FSSTXMaker.tearDown(self)
00082         self._setWhichTemplate(self._old_STX_TEMPLATE)

Here is the call graph for this function:


Member Data Documentation

Definition at line 76 of file test_FSSTXMethod.py.


The documentation for this class was generated from the following file: