parameters: (self, *args)
docstring: Node browse for a new parent
docstring_summary: Node browse for a new parent
docstring_tokens: Node browse for a new parent
function: def node_change_father(self, *args):
          """Node browse for a new parent"""
          if not self.is_there_selected_node_or_error(): return
          curr_node_id = self.treestore[self.curr_tree_iter][3]
          old_father_iter = self.treestore.iter_parent(self.curr_tree_iter)
          if old_father_iter != None: old_father_node_id = self.treestore[old_father_iter][3]
          else: old_father_node_id = None
          father_iter = support.dialog_choose_node(self, _("Select the New Parent"), self.treestore, self.curr_tree_iter)
          if not father_iter: return
          new_father_node_id = self.treestore[father_iter][3]
          if curr_node_id == new_father_node_id:
              support.dialog_error(_("The new parent can't be the very node to move!"), self.window)
              return
          if old_father_node_id != None and new_father_node_id == old_father_node_id:
              support.dialog_info(_("The new chosen parent is still the old parent!"), self.window)
              return
          move_towards_top_iter = self.treestore.iter_parent(father_iter)
          while move_towards_top_iter:
              if self.treestore[move_towards_top_iter][3] == curr_node_id:
                  support.dialog_error(_("The new parent can't be one of his children!"), self.window)
                  return
              move_towards_top_iter = self.treestore.iter_parent(move_towards_top_iter)
          self.node_move_after(self.curr_tree_iter, father_iter)
          if self.nodes_icons == "c": self.treeview_refresh(change_icon=True)
function_tokens: def node_change_father ( self , * args ) : if not self . is_there_selected_node_or_error ( ) : return curr_node_id = self . treestore [ self . curr_tree_iter ] [ 3 ] old_father_iter = self . treestore . iter_parent ( self . curr_tree_iter ) if old_father_iter != None : old_father_node_id = self . treestore [ old_father_iter ] [ 3 ] else : old_father_node_id = None father_iter = support . dialog_choose_node ( self , _ ( "Select the New Parent" ) , self . treestore , self . curr_tree_iter ) if not father_iter : return new_father_node_id = self . treestore [ father_iter ] [ 3 ] if curr_node_id == new_father_node_id : support . dialog_error ( _ ( "The new parent can't be the very node to move!" ) , self . window ) return if old_father_node_id != None and new_father_node_id == old_father_node_id : support . dialog_info ( _ ( "The new chosen parent is still the old parent!" ) , self . window ) return move_towards_top_iter = self . treestore . iter_parent ( father_iter ) while move_towards_top_iter : if self . treestore [ move_towards_top_iter ] [ 3 ] == curr_node_id : support . dialog_error ( _ ( "The new parent can't be one of his children!" ) , self . window ) return move_towards_top_iter = self . treestore . iter_parent ( move_towards_top_iter ) self . node_move_after ( self . curr_tree_iter , father_iter ) if self . nodes_icons == "c" : self . treeview_refresh ( change_icon = True )