equal
deleted
inserted
replaced
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 """ |