parameters: (self, iter_to_move, father_iter, brother_iter=None, set_first=False)
docstring: Move a node to a parent and after a sibling
docstring_summary: Move a node to a parent and after a sibling
docstring_tokens: Move a node to a parent and after a sibling
function: def node_move_after(self, iter_to_move, father_iter, brother_iter=None, set_first=False):
          """Move a node to a parent and after a sibling"""
          if brother_iter:
              new_node_iter = self.treestore.insert_after(father_iter, brother_iter, self.treestore[iter_to_move])
          elif set_first: new_node_iter = self.treestore.prepend(father_iter, self.treestore[iter_to_move])
          else: new_node_iter = self.treestore.append(father_iter, self.treestore[iter_to_move])
          # we move also all the children
          self.node_move_children(iter_to_move, new_node_iter)
          # now we can remove the old iter (and all children)
          self.treestore.remove(iter_to_move)
          self.ctdb_handler.pending_edit_db_node_hier(self.treestore[new_node_iter][3])
          self.nodes_sequences_fix(None, True)
          if father_iter: self.treeview.expand_row(self.treestore.get_path(father_iter), False)
          else: self.treeview.expand_row(self.treestore.get_path(new_node_iter), False)
          self.curr_tree_iter = new_node_iter
          new_node_path = self.treestore.get_path(new_node_iter)
          self.treeview.collapse_row(new_node_path)
          self.treeview.set_cursor(new_node_path)
          self.update_window_save_needed()
function_tokens: def node_move_after ( self , iter_to_move , father_iter , brother_iter = None , set_first = False ) : if brother_iter : new_node_iter = self . treestore . insert_after ( father_iter , brother_iter , self . treestore [ iter_to_move ] ) elif set_first : new_node_iter = self . treestore . prepend ( father_iter , self . treestore [ iter_to_move ] ) else : new_node_iter = self . treestore . append ( father_iter , self . treestore [ iter_to_move ] ) # we move also all the children self . node_move_children ( iter_to_move , new_node_iter ) # now we can remove the old iter (and all children) self . treestore . remove ( iter_to_move ) self . ctdb_handler . pending_edit_db_node_hier ( self . treestore [ new_node_iter ] [ 3 ] ) self . nodes_sequences_fix ( None , True ) if father_iter : self . treeview . expand_row ( self . treestore . get_path ( father_iter ) , False ) else : self . treeview . expand_row ( self . treestore . get_path ( new_node_iter ) , False ) self . curr_tree_iter = new_node_iter new_node_path = self . treestore . get_path ( new_node_iter ) self . treeview . collapse_row ( new_node_path ) self . treeview . set_cursor ( new_node_path ) self . update_window_save_needed ( )