Back to index

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

Classes

class  ContentTypeRegistryXMLAdapter

Functions

def importContentTypeRegistry
def exportContentTypeRegistry

Function Documentation

Export content type registry settings as an XML file.

Definition at line 119 of file contenttyperegistry.py.

00119 
00120 def exportContentTypeRegistry(context):
00121     """Export content type registry settings as an XML file.
00122     """
00123     site = context.getSite()
00124     tool = getToolByName(site, 'content_type_registry', None)
00125     if tool is None:
00126         logger = context.getLogger('contenttypes')
00127         logger.info('Nothing to export.')
00128         return
00129 
00130     exportObjects(tool, '', context)

Here is the call graph for this function:

Here is the caller graph for this function:

Import content type registry settings from an XML file.

Definition at line 111 of file contenttyperegistry.py.

00111 
00112 def importContentTypeRegistry(context):
00113     """Import content type registry settings from an XML file.
00114     """
00115     site = context.getSite()
00116     tool = getToolByName(site, 'content_type_registry')
00117 
00118     importObjects(tool, '', context)

Here is the call graph for this function:

Here is the caller graph for this function: