Back to index

plone3  3.1.7
Classes | Functions
CMFCore.exportimport.cachingpolicymgr Namespace Reference

Classes

class  CachingPolicyNodeAdapter
class  CachingPolicyManagerXMLAdapter

Functions

def importCachingPolicyManager
def exportCachingPolicyManager

Function Documentation

Export caching policy manager settings as an XML file.

Definition at line 180 of file cachingpolicymgr.py.

00180 
00181 def exportCachingPolicyManager(context):
00182     """Export caching policy manager settings as an XML file.
00183     """
00184     site = context.getSite()
00185     tool = getToolByName(site, 'caching_policy_manager', None)
00186     if tool is None:
00187         logger = context.getLogger('cachingpolicies')
00188         logger.info('Nothing to export.')
00189         return
00190 
00191     exportObjects(tool, '', context)

Here is the call graph for this function:

Here is the caller graph for this function:

Import caching policy manager settings from an XML file.

Definition at line 172 of file cachingpolicymgr.py.

00172 
00173 def importCachingPolicyManager(context):
00174     """Import caching policy manager settings from an XML file.
00175     """
00176     site = context.getSite()
00177     tool = getToolByName(site, 'caching_policy_manager')
00178 
00179     importObjects(tool, '', context)

Here is the call graph for this function:

Here is the caller graph for this function: