Back to index

plone3  3.1.7
Static Public Attributes | Properties | Private Member Functions
DCWorkflow.exportimport.DCWorkflowDefinitionBodyAdapter Class Reference
Inheritance diagram for DCWorkflow.exportimport.DCWorkflowDefinitionBodyAdapter:
Inheritance graph
[legend]
Collaboration diagram for DCWorkflow.exportimport.DCWorkflowDefinitionBodyAdapter:
Collaboration graph
[legend]

List of all members.

Static Public Attributes

string mime_type = 'text/xml'
string suffix = '/definition.xml'

Properties

 body = property(_exportBody, _importBody)

Private Member Functions

def _exportBody
def _importBody

Detailed Description

Body im- and exporter for DCWorkflowDefinition.

Definition at line 41 of file exportimport.py.


Member Function Documentation

Export the object as a file body.

Definition at line 48 of file exportimport.py.

00048 
00049     def _exportBody(self):
00050         """Export the object as a file body.
00051         """
00052         wfdc = WorkflowDefinitionConfigurator(self.context)
00053         return wfdc.__of__(self.context).generateWorkflowXML()

Here is the call graph for this function:

Import the object from the file body.

Definition at line 54 of file exportimport.py.

00054 
00055     def _importBody(self, body):
00056         """Import the object from the file body.
00057         """
00058         encoding = 'utf-8'
00059         wfdc = WorkflowDefinitionConfigurator(self.context)
00060 
00061         ( workflow_id
00062         , title
00063         , state_variable
00064         , initial_state
00065         , states
00066         , transitions
00067         , variables
00068         , worklists
00069         , permissions
00070         , scripts
00071         , description
00072         ) = wfdc.parseWorkflowXML(body, encoding)
00073 
00074         _initDCWorkflow( self.context
00075                        , title
00076                        , description
00077                        , state_variable
00078                        , initial_state
00079                        , states
00080                        , transitions
00081                        , variables
00082                        , worklists
00083                        , permissions
00084                        , scripts
00085                        , self.environ
00086                        )

Here is the call graph for this function:


Member Data Documentation

Definition at line 89 of file exportimport.py.

Definition at line 91 of file exportimport.py.


Property Documentation

Definition at line 87 of file exportimport.py.


The documentation for this class was generated from the following file: