Back to index

plone3  3.1.7
Classes | Functions | Variables
CMFPlacefulWorkflow.exportimport.workflow_policies Namespace Reference

Classes

class  PlacefulWorkflowXMLAdapter
class  WorkflowPoliciesXMLAdapter

Functions

def importWorkflowPolicies
def exportWorkflowPolicies

Variables

string __version__ = "$Revision: $"
 CMFPlacefulWorflow Copyright (C)2006 Ingeniweb.
string __docformat__ = 'restructuredtext'
list _marker = []

Function Documentation

Export workflow policies as an XML file.

Definition at line 146 of file workflow_policies.py.

00146 
00147 def exportWorkflowPolicies(context):
00148     """Export workflow policies as an XML file.
00149     """
00150     site = context.getSite()
00151     tool = getToolByName(site, 'portal_placeful_workflow', None)
00152     if tool is None:
00153         logger = context.getLogger('workflow_policies')
00154         logger.info('Nothing to export.')
00155         return
00156 
00157     exportObjects(tool, '', context)

Here is the call graph for this function:

Import workflow policies from the XML file.

Definition at line 137 of file workflow_policies.py.

00137 
00138 def importWorkflowPolicies(context):
00139     """Import workflow policies from the XML file.
00140     """
00141     site = context.getSite()
00142     tool = getToolByName(site, 'portal_placeful_workflow', None)
00143     if tool is not None:
00144         importObjects(tool, '', context)
00145 

Here is the call graph for this function:


Variable Documentation

Definition at line 24 of file workflow_policies.py.

CMFPlacefulWorflow Copyright (C)2006 Ingeniweb.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Definition at line 21 of file workflow_policies.py.

Definition at line 35 of file workflow_policies.py.