Back to index

plone3  3.1.7
Classes | Functions
CMFEditions.exportimport.repository Namespace Reference

Classes

class  RepositoryToolXMLAdapter

Functions

def importRepositoryTool
def exportRepositoryTool

Function Documentation

Export Repository Tool configuration.

Definition at line 57 of file repository.py.

00057 
00058 def exportRepositoryTool(context):
00059     """Export Repository Tool configuration.
00060     """
00061     site = context.getSite()
00062     tool = getToolByName(site, 'portal_repository', None)
00063     if tool is None:
00064         logger = context.getLogger("repositorytool")
00065         logger.info("Nothing to export.")
00066         return
00067 
00068     exportObjects(tool, '', context)

Here is the call graph for this function:

Import Repository Tool configuration.

Definition at line 48 of file repository.py.

00048 
00049 def importRepositoryTool(context):
00050     """Import Repository Tool configuration.
00051     """
00052     site = context.getSite()
00053     tool = getToolByName(site, 'portal_repository')
00054 
00055     importObjects(tool, '', context)
00056 

Here is the call graph for this function: