Back to index

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

List of all members.

Public Member Functions

def manage_main
def addVariable
def deleteVariables
def getStateVar
def setStateVar

Static Public Attributes

string meta_type = 'Workflow Variables'
tuple all_meta_types

Private Member Functions

def _checkId

Static Private Attributes

tuple _manage_variables = DTMLFile('variables', _dtmldir)

Detailed Description

A container for variable definitions

Definition at line 111 of file Variables.py.


Member Function Documentation

def DCWorkflow.Variables.Variables._checkId (   self,
  id,
  allow_dup = 0 
) [private]

Definition at line 147 of file Variables.py.

00147 
00148     def _checkId(self, id, allow_dup=0):
00149         wf_def = aq_parent(aq_inner(self))
00150         if id == wf_def.state_var:
00151             raise 'Bad Request', '"%s" is used for keeping state.' % id
00152         return ContainerTab._checkId(self, id, allow_dup)

Here is the caller graph for this function:

def DCWorkflow.Variables.Variables.addVariable (   self,
  id,
  REQUEST = None 
)

Definition at line 131 of file Variables.py.

00131 
00132     def addVariable(self, id, REQUEST=None):
00133         '''
00134         '''
00135         vdef = VariableDefinition(id)
00136         self._setObject(id, vdef)
00137         if REQUEST is not None:
00138             return self.manage_main(REQUEST, 'Variable added.')

Here is the call graph for this function:

def DCWorkflow.Variables.Variables.deleteVariables (   self,
  ids,
  REQUEST = None 
)

Definition at line 139 of file Variables.py.

00139 
00140     def deleteVariables(self, ids, REQUEST=None):
00141         '''
00142         '''
00143         for id in ids:
00144             self._delObject(id)
00145         if REQUEST is not None:
00146             return self.manage_main(REQUEST, 'Variable(s) removed.')

Here is the call graph for this function:

Definition at line 153 of file Variables.py.

00153 
00154     def getStateVar(self):
00155         wf_def = aq_parent(aq_inner(self))
00156         return wf_def.state_var

def DCWorkflow.Variables.Variables.manage_main (   self,
  REQUEST,
  manage_tabs_message = None 
)

Definition at line 122 of file Variables.py.

00122 
00123     def manage_main(self, REQUEST, manage_tabs_message=None):
00124         '''
00125         '''
00126         return self._manage_variables(
00127             REQUEST,
00128             management_view='Variables',
00129             manage_tabs_message=manage_tabs_message,
00130             )

Here is the caller graph for this function:

def DCWorkflow.Variables.Variables.setStateVar (   self,
  id,
  REQUEST = None 
)

Definition at line 157 of file Variables.py.

00157 
00158     def setStateVar(self, id, REQUEST=None):
00159         '''
00160         '''
00161         wf_def = aq_parent(aq_inner(self))
00162         if id != wf_def.state_var:
00163             self._checkId(id)
00164             wf_def.state_var = str(id)
00165         if REQUEST is not None:
00166             return self.manage_main(REQUEST, 'Set state variable.')
00167 
00168 InitializeClass(Variables)

Here is the call graph for this function:


Member Data Documentation

tuple DCWorkflow.Variables.Variables._manage_variables = DTMLFile('variables', _dtmldir) [static, private]

Definition at line 120 of file Variables.py.

Initial value:
({'name':VariableDefinition.meta_type,
                       'action':'addVariable',
                       },)

Definition at line 116 of file Variables.py.

Definition at line 114 of file Variables.py.


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