Back to index

plone3  3.1.7
Classes | Functions
PloneLanguageTool.exportimport Namespace Reference

Classes

class  LanguageToolXMLAdapter

Functions

def importLanguageTool
def exportLanguageTool

Function Documentation

Export Plone language tool settings as an XML file.

Definition at line 102 of file exportimport.py.

00102 
00103 def exportLanguageTool(context):
00104     """Export Plone language tool settings as an XML file.
00105     """
00106     site = context.getSite()
00107     tool = getToolByName(site, 'portal_languages', None)
00108     if tool is None:
00109         logger = context.getLogger('portal_languages')
00110         logger.info('Nothing to export.')
00111         return
00112 
00113     exportObjects(tool, '', context)
00114 
00115 

Here is the call graph for this function:

Import Plone language tool settings from an XML file.

Definition at line 94 of file exportimport.py.

00094 
00095 def importLanguageTool(context):
00096     """Import Plone language tool settings from an XML file.
00097     """
00098     site = context.getSite()
00099     tool = getToolByName(site, 'portal_languages')
00100 
00101     importObjects(tool, '', context)

Here is the call graph for this function: