Back to index

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

Classes

class  TypeInformationXMLAdapter
class  TypesToolXMLAdapter

Functions

def importTypesTool
def exportTypesTool

Function Documentation

Export types tool content types as a set of XML files.

Definition at line 185 of file typeinfo.py.

00185 
00186 def exportTypesTool(context):
00187     """Export types tool content types as a set of XML files.
00188     """
00189     site = context.getSite()
00190     tool = getToolByName(site, 'portal_types', None)
00191     if tool is None:
00192         logger = context.getLogger('types')
00193         logger.info('Nothing to export.')
00194         return
00195 
00196     exportObjects(tool, '', context)

Here is the call graph for this function:

Here is the caller graph for this function:

Import types tool and content types from XML files.

Definition at line 177 of file typeinfo.py.

00177 
00178 def importTypesTool(context):
00179     """Import types tool and content types from XML files.
00180     """
00181     site = context.getSite()
00182     tool = getToolByName(site, 'portal_types')
00183 
00184     importObjects(tool, '', context)

Here is the call graph for this function:

Here is the caller graph for this function: