Back to index

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

List of all members.

Public Member Functions

def manage_main
def addState
def deleteStates
def setInitialState

Static Public Attributes

string meta_type = 'Workflow States'
tuple security = ClassSecurityInfo()
tuple all_meta_types

Static Private Attributes

tuple _manage_states = DTMLFile('states', _dtmldir)

Detailed Description

A container for state definitions

Definition at line 258 of file States.py.


Member Function Documentation

def DCWorkflow.States.States.addState (   self,
  id,
  REQUEST = None 
)

Definition at line 280 of file States.py.

00280 
00281     def addState(self, id, REQUEST=None):
00282         '''
00283         '''
00284         sdef = StateDefinition(id)
00285         self._setObject(id, sdef)
00286         if REQUEST is not None:
00287             return self.manage_main(REQUEST, 'State added.')

Here is the call graph for this function:

def DCWorkflow.States.States.deleteStates (   self,
  ids,
  REQUEST = None 
)

Definition at line 288 of file States.py.

00288 
00289     def deleteStates(self, ids, REQUEST=None):
00290         '''
00291         '''
00292         for id in ids:
00293             self._delObject(id)
00294         if REQUEST is not None:
00295             return self.manage_main(REQUEST, 'State(s) removed.')

Here is the call graph for this function:

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

Definition at line 272 of file States.py.

00272 
00273     def manage_main(self, REQUEST, manage_tabs_message=None):
00274         '''
00275         '''
00276         return self._manage_states(REQUEST,
00277                                    management_view='States',
00278                                    manage_tabs_message=manage_tabs_message,
00279                                    )

Here is the caller graph for this function:

def DCWorkflow.States.States.setInitialState (   self,
  id = None,
  ids = None,
  REQUEST = None 
)

Definition at line 296 of file States.py.

00296 
00297     def setInitialState(self, id=None, ids=None, REQUEST=None):
00298         '''
00299         '''
00300         if not id:
00301             if len(ids) != 1:
00302                 raise ValueError, 'One and only one state must be selected'
00303             id = ids[0]
00304         id = str(id)
00305         aq_parent(aq_inner(self)).initial_state = id
00306         if REQUEST is not None:
00307             return self.manage_main(REQUEST, 'Initial state selected.')
00308 
00309 InitializeClass(States)

Here is the call graph for this function:


Member Data Documentation

tuple DCWorkflow.States.States._manage_states = DTMLFile('states', _dtmldir) [static, private]

Definition at line 270 of file States.py.

Initial value:
({'name':StateDefinition.meta_type,
                       'action':'addState',
                       },)

Definition at line 266 of file States.py.

string DCWorkflow.States.States.meta_type = 'Workflow States' [static]

Definition at line 261 of file States.py.

tuple DCWorkflow.States.States.security = ClassSecurityInfo() [static]

Definition at line 263 of file States.py.


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