def _join_relationships(workflow, parent, child_el):
 if ('to' not in child_el.attrib):
  raise RuntimeError((_("Node %s has a link that is missing 'to' attribute.") % parent.name))
 to = child_el.attrib['to']
 try:
  child = Node.objects.get(workflow=workflow, name=to)
 except Node.DoesNotExist as e:
  raise RuntimeError((_('Node %s has not been defined.') % to))
 obj = Link.objects.create(name='to', parent=parent, child=child)
 obj.save()

def _join_relationships ( workflow , parent , child_el ) : if ( 'to' not in child_el . attrib ) : raise RuntimeError ( ( _ ( "Node %s has a link that is missing 'to' attribute." ) % parent . name ) ) to = child_el . attrib [ 'to' ] try : child = Node . objects . get ( workflow = workflow , name = to ) except Node . DoesNotExist as e : raise RuntimeError ( ( _ ( 'Node %s has not been defined.' ) % to ) ) obj = Link . objects . create ( name = 'to' , parent = parent , child = child ) obj . save ( )
resolves join node links .