diff -r a570191d67b0 -r 2fcb53ee5178 cubicweb/wfutils.py --- a/cubicweb/wfutils.py Tue Oct 09 16:24:12 2018 +0200 +++ b/cubicweb/wfutils.py Mon Oct 29 10:04:31 2018 +0100 @@ -124,8 +124,8 @@ wf.cw_set(initial_state=states[wfdef['initial_state']]) for trname, trdef in wfdef['transitions'].items(): - tr = (wf.transition_by_name(trname) or - cnx.create_entity('Transition', name=trname)) + tr = (wf.transition_by_name(trname) + or cnx.create_entity('Transition', name=trname)) tr.cw_set(transition_of=wf) if trdef.get('tostate'): tr.cw_set(destination_state=states[trdef['tostate']])