# HG changeset patch # User Sylvain Thénault # Date 1250836980 -7200 # Node ID 3bd49b70f7f9d5cb5bab8ead5457c4f6417302f4 # Parent 77622caef9bd22c53220013f98dde3652e2b3c68 [wf] return None, not empty list diff -r 77622caef9bd -r 3bd49b70f7f9 entities/wfobjs.py --- a/entities/wfobjs.py Fri Aug 21 08:42:17 2009 +0200 +++ b/entities/wfobjs.py Fri Aug 21 08:43:00 2009 +0200 @@ -23,7 +23,7 @@ @property def initial(self): """return the initial state for this workflow""" - return self.initial_state and self.initial_state[0] + return self.initial_state and self.initial_state[0] or None def is_default_workflow_of(self, etype): """return True if this workflow is the default workflow for the given