Back to index

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

Classes

class  WorkflowToolXMLAdapter

Functions

def importWorkflowTool
def exportWorkflowTool

Function Documentation

Export workflow tool and contained workflow definitions as XML files.

Definition at line 128 of file workflow.py.

00128 
00129 def exportWorkflowTool(context):
00130     """Export workflow tool and contained workflow definitions as XML files.
00131     """
00132     site = context.getSite()
00133     tool = getToolByName(site, 'portal_workflow', None)
00134     if tool is None:
00135         logger = context.getLogger('workflow')
00136         logger.info('Nothing to export.')
00137         return
00138 
00139     exportObjects(tool, '', context)

Here is the call graph for this function:

Here is the caller graph for this function:

Import workflow tool and contained workflow definitions from XML files.

Definition at line 120 of file workflow.py.

00120 
00121 def importWorkflowTool(context):
00122     """Import workflow tool and contained workflow definitions from XML files.
00123     """
00124     site = context.getSite()
00125     tool = getToolByName(site, 'portal_workflow')
00126 
00127     importObjects(tool, '', context)

Here is the call graph for this function:

Here is the caller graph for this function: