parameters: (self, dad)
docstring: After the node import, set the links to nodes on the new tree
docstring_summary: After the node import, set the links to nodes on the new tree
docstring_tokens: After the node import set the links to nodes on the new tree
function: def set_links_to_nodes(self, dad):
          """After the node import, set the links to nodes on the new tree"""
          for link_to_node in self.links_to_node_list:
              node_dest = dad.get_tree_iter_from_node_name(link_to_node['name_dest'])
              node_source = dad.get_tree_iter_from_node_name(link_to_node['name_source'])
              if not node_dest:
                  #print "node_dest not found"
                  continue
              if not node_source:
                  #print "node_source not found"
                  continue
              source_buffer = dad.get_textbuffer_from_tree_iter(node_source)
              if source_buffer.get_char_count() < link_to_node['char_end']:
                  continue
              property_value = cons.LINK_TYPE_NODE + cons.CHAR_SPACE + str(dad.treestore[node_dest][3])
              source_buffer.apply_tag_by_name(dad.apply_tag_exist_or_create(cons.TAG_LINK, property_value),
                                              source_buffer.get_iter_at_offset(link_to_node['char_start']),
                                              source_buffer.get_iter_at_offset(link_to_node['char_end']))
function_tokens: def set_links_to_nodes ( self , dad ) : for link_to_node in self . links_to_node_list : node_dest = dad . get_tree_iter_from_node_name ( link_to_node [ 'name_dest' ] ) node_source = dad . get_tree_iter_from_node_name ( link_to_node [ 'name_source' ] ) if not node_dest : #print "node_dest not found" continue if not node_source : #print "node_source not found" continue source_buffer = dad . get_textbuffer_from_tree_iter ( node_source ) if source_buffer . get_char_count ( ) < link_to_node [ 'char_end' ] : continue property_value = cons . LINK_TYPE_NODE + cons . CHAR_SPACE + str ( dad . treestore [ node_dest ] [ 3 ] ) source_buffer . apply_tag_by_name ( dad . apply_tag_exist_or_create ( cons . TAG_LINK , property_value ) , source_buffer . get_iter_at_offset ( link_to_node [ 'char_start' ] ) , source_buffer . get_iter_at_offset ( link_to_node [ 'char_end' ] ) )