Back to index

plone3  3.1.7
Functions
CMFCore.exportimport.catalog Namespace Reference

Functions

def importCatalogTool
def exportCatalogTool

Function Documentation

Export catalog tool.

Definition at line 32 of file catalog.py.

00032 
00033 def exportCatalogTool(context):
00034     """Export catalog tool.
00035     """
00036     site = context.getSite()
00037     tool = getToolByName(site, 'portal_catalog', None)
00038     if tool is None:
00039         logger = context.getLogger('catalog')
00040         logger.info('Nothing to export.')
00041         return
00042 
00043     exportObjects(tool, '', context)

Here is the call graph for this function:

Here is the caller graph for this function:

Import catalog tool.

Definition at line 24 of file catalog.py.

00024 
00025 def importCatalogTool(context):
00026     """Import catalog tool.
00027     """
00028     site = context.getSite()
00029     tool = getToolByName(site, 'portal_catalog')
00030 
00031     importObjects(tool, '', context)

Here is the call graph for this function:

Here is the caller graph for this function: