Back to index

plone3  3.1.7
Classes | Functions | Variables
wicked.testing.cache Namespace Reference

Classes

class  Filter

Functions

def getToolByName
def backlinkTools
def setupTools

Variables

tuple portal_tools = dict()

Function Documentation

Definition at line 36 of file cache.py.

00036 
00037 def backlinkTools():
00038     import Products.CMFCore.utils
00039     Products.CMFCore.utils.getToolByName = getToolByName
00040     from Products import AdvancedQuery
00041     from Products.CMFCore.CatalogTool import CatalogTool
00042     from Products.Archetypes.ReferenceEngine import ReferenceCatalog, UIDCatalog
00043     return dict(portal_workflow=None,
00044                 portal_catalog=CatalogTool(),
00045                 reference_catalog=ReferenceCatalog(id='portal_reference'),
00046                 portal_uid=UIDCatalog(id='portal_uid'))

Here is the call graph for this function:

def wicked.testing.cache.getToolByName (   context,
  toolname,
  default 
)

Definition at line 33 of file cache.py.

00033 
00034 def getToolByName(context, toolname, default):
00035     return portal_tools.get(toolname, default)

Definition at line 47 of file cache.py.

00047 
00048 def setupTools(tools):
00049     portal_tools.update(tools)


Variable Documentation

Definition at line 32 of file cache.py.