entities/wfobjs.py
branchstable
changeset 3609 9329f765fff3
parent 3582 28547f21308e
child 3621 1ec4452aa36f
--- 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