Back to index

plone3  3.1.7
Functions
CMFCore.exportimport.mailhost Namespace Reference

Functions

def importMailHost
def exportMailHost

Function Documentation

Export mailhost settings as an XML file.

Definition at line 34 of file mailhost.py.

00034 
00035 def exportMailHost(context):
00036     """Export mailhost settings as an XML file.
00037     """
00038     sm = getSiteManager(context.getSite())
00039     tool = sm.queryUtility(IMailHost)
00040     if tool is None:
00041         logger = context.getLogger('mailhost')
00042         logger.info('Nothing to export.')
00043         return
00044 
00045     exportObjects(tool, '', context)

Here is the call graph for this function:

Here is the caller graph for this function:

Import mailhost settings from an XML file.

Definition at line 26 of file mailhost.py.

00026 
00027 def importMailHost(context):
00028     """Import mailhost settings from an XML file.
00029     """
00030     sm = getSiteManager(context.getSite())
00031     tool = sm.getUtility(IMailHost)
00032 
00033     importObjects(tool, '', context)

Here is the call graph for this function:

Here is the caller graph for this function: