Back to index

plone3  3.1.7
Functions
CMFTestCase.five Namespace Reference

Functions

def _cleanUp
def cleanUp
def setDebugMode
def safe_load_site
def safe_load_site_wrapper

Function Documentation

def CMFTestCase.five._cleanUp ( ) [private]

Definition at line 16 of file five.py.

00016 
00017         def _cleanUp(): pass
00018 

Here is the caller graph for this function:

Cleans up the component architecture.

Definition at line 19 of file five.py.

00019 
00020 def cleanUp():
00021     '''Cleans up the component architecture.'''
00022     _cleanUp()
00023     import Products.Five.zcml as zcml
00024     zcml._initialized = 0
00025 

Here is the call graph for this function:

Here is the caller graph for this function:

Loads entire component architecture (w/ debug mode on).

Definition at line 34 of file five.py.

00034 
00035 def safe_load_site():
00036     '''Loads entire component architecture (w/ debug mode on).'''
00037     cleanUp()
00038     setDebugMode(1)
00039     import Products.Five.zcml as zcml
00040     zcml.load_site()
00041     setDebugMode(0)
00042 

Here is the call graph for this function:

Here is the caller graph for this function:

Wraps func with a temporary loading of entire component
   architecture. Used as a decorator.

Definition at line 43 of file five.py.

00043 
00044 def safe_load_site_wrapper(func):
00045     '''Wraps func with a temporary loading of entire component
00046        architecture. Used as a decorator.
00047     '''
00048     def wrapped_func(*args, **kw):
00049         safe_load_site()
00050         value = func(*args, **kw)
00051         cleanUp()
00052         return value
00053     return wrapped_func
00054 

Here is the call graph for this function:

Allows manual setting of Five's inspection of debug mode
   to allow for ZCML to fail meaningfully.

Definition at line 26 of file five.py.

00026 
00027 def setDebugMode(mode):
00028     '''Allows manual setting of Five's inspection of debug mode
00029        to allow for ZCML to fail meaningfully.
00030     '''
00031     import Products.Five.fiveconfigure as fc
00032     fc.debug_mode = mode
00033 

Here is the caller graph for this function: