Back to index

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

Classes

class  CookieCrumblerXMLAdapter

Functions

def importCookieCrumbler
def exportCookieCrumbler

Function Documentation

Export cookie crumbler settings as an XML file.

Definition at line 69 of file cookieauth.py.

00069 
00070 def exportCookieCrumbler(context):
00071     """Export cookie crumbler settings as an XML file.
00072     """
00073     site = context.getSite()
00074     tool = getToolByName(site, 'cookie_authentication', None)
00075     if tool is None:
00076         logger = context.getLogger('cookies')
00077         logger.info('Nothing to export.')
00078         return
00079 
00080     exportObjects(tool, '', context)

Here is the call graph for this function:

Here is the caller graph for this function:

Import cookie crumbler settings from an XML file.

Definition at line 61 of file cookieauth.py.

00061 
00062 def importCookieCrumbler(context):
00063     """Import cookie crumbler settings from an XML file.
00064     """
00065     site = context.getSite()
00066     tool = getToolByName(site, 'cookie_authentication')
00067 
00068     importObjects(tool, '', context)

Here is the call graph for this function:

Here is the caller graph for this function: