def trg_redirect(uid, res_type, res_id, new_rid, cr):
 assert isinstance(new_rid, (long, int))
 return WorkflowService.new(cr, uid, res_type, res_id).redirect(new_rid)

def trg_redirect ( uid , res_type , res_id , new_rid , cr ) : assert isinstance ( new_rid , ( long , int ) ) return WorkflowService . new ( cr , uid , res_type , res_id ) . redirect ( new_rid )
re-bind a workflow instance to another instance of the same model .