entities/wfobjs.py
branch3.5
changeset 2944 3bd49b70f7f9
parent 2943 77622caef9bd
child 2945 f0ab83510477
equal deleted inserted replaced
2943:77622caef9bd 2944:3bd49b70f7f9
    21     id = 'Workflow'
    21     id = 'Workflow'
    22 
    22 
    23     @property
    23     @property
    24     def initial(self):
    24     def initial(self):
    25         """return the initial state for this workflow"""
    25         """return the initial state for this workflow"""
    26         return self.initial_state and self.initial_state[0]
    26         return self.initial_state and self.initial_state[0] or None
    27 
    27 
    28     def is_default_workflow_of(self, etype):
    28     def is_default_workflow_of(self, etype):
    29         """return True if this workflow is the default workflow for the given
    29         """return True if this workflow is the default workflow for the given
    30         entity type
    30         entity type
    31         """
    31         """