# HG changeset patch # User Sylvain Thénault # Date 1254938604 -7200 # Node ID 9329f765fff30679f572df2e20d2c3c438848ff4 # Parent 5a46e68c3d3c66eff17e7f5f43f7bd2f6eba504b ensure relation is properly created diff -r 5a46e68c3d3c -r 9329f765fff3 entities/wfobjs.py --- a/entities/wfobjs.py Wed Oct 07 19:59:46 2009 +0200 +++ b/entities/wfobjs.py Wed Oct 07 20:03:24 2009 +0200 @@ -143,8 +143,8 @@ requiredgroups, conditions, **kwargs) if hasattr(subworkflow, 'eid'): subworkflow = subworkflow.eid - self.req.execute('SET T subworkflow WF WHERE WF eid %(wf)s,T eid %(t)s', - {'t': tr.eid, 'wf': subworkflow}, ('wf', 't')) + assert self.req.execute('SET T subworkflow WF WHERE WF eid %(wf)s,T eid %(t)s', + {'t': tr.eid, 'wf': subworkflow}, ('wf', 't')) for fromstate, tostate in exitpoints: tr.add_exit_point(fromstate, tostate) return tr