def select_entry(self, core_element_id, by_cursor=True):
        """Selects the row entry belonging to the given core_element_id by cursor or tree selection"""
        path = self.get_path_for_core_element(core_element_id)
        if path:
            if by_cursor:
                self.tree_view.set_cursor(path)
            else:
                self.tree_view.get_selection().select_path(path)
        else:
            self._logger.warning("Path not valid: {0} (by_cursor {1})".format(str(core_element_id), str(by_cursor)))
def select_entry ( self , core_element_id , by_cursor = True ) : path = self . get_path_for_core_element ( core_element_id ) if path : if by_cursor : self . tree_view . set_cursor ( path ) else : self . tree_view . get_selection ( ) . select_path ( path ) else : self . _logger . warning ( "Path not valid: {0} (by_cursor {1})" . format ( str ( core_element_id ) , str ( by_cursor ) ) )
Selects the row entry belonging to the given core_element_id by cursor or tree selection