deluge.ui.console.modes.torrentlist package

Submodules

deluge.ui.console.modes.torrentlist.add_torrents_popup module

deluge.ui.console.modes.torrentlist.add_torrents_popup.report_add_status(torrentlist, succ_cnt, fail_cnt, fail_msgs)
deluge.ui.console.modes.torrentlist.add_torrents_popup.show_torrent_add_popup(torrentlist)

deluge.ui.console.modes.torrentlist.filtersidebar module

class deluge.ui.console.modes.torrentlist.filtersidebar.FilterSidebar(torrentlist, config)

Bases: Sidebar, Component

The sidebar in the main torrentview

Shows the different states of the torrents and allows to filter the torrents based on state.

handle_read(c)

Handle a character read from curses screen

Returns:

int – One of the constants defined in util.curses_util.ReadState. ReadState.IGNORED: The key was not handled. Further processing should continue. ReadState.READ: The key was read and processed. Do no further processing ReadState.CHANGED: The key was read and processed. Internal state was changed leaving data to be read by the caller.

immediate_action_cb(state_changed=True)
on_resize(width)
update()

deluge.ui.console.modes.torrentlist.queue_mode module

class deluge.ui.console.modes.torrentlist.queue_mode.QueueMode(torrentslist, torrent_ids)

Bases: object

do_queue(qact, *args, **kwargs)
handle_read(c)
move_selection(cb_arg, qact)
popup(**kwargs)
set_statusbar_args(statusbar_args)
update_colors(tidx, colors)
update_cursor()

deluge.ui.console.modes.torrentlist.search_mode module

class deluge.ui.console.modes.torrentlist.search_mode.SearchMode(torrentlist)

Bases: InputKeyHandler

Performs a search on visible torrent and sets cursor to the match

Parameters:

direction (str) – The direction to search. Must be one of ‘first’, ‘last’, ‘next’ or ‘previous’

handle_read(c)

Handle a character read from curses screen

Returns:

int – One of the constants defined in util.curses_util.ReadState. ReadState.IGNORED: The key was not handled. Further processing should continue. ReadState.READ: The key was read and processed. Do no further processing ReadState.CHANGED: The key was read and processed. Internal state was changed leaving data to be read by the caller.

set_statusbar_args(statusbar_args)
update_colors(tidx, colors)
update_cursor()

deluge.ui.console.modes.torrentlist.torrentactions module

deluge.ui.console.modes.torrentlist.torrentactions.action_error(error, mode)
deluge.ui.console.modes.torrentlist.torrentactions.action_remove(mode=None, torrent_ids=None, **kwargs)
deluge.ui.console.modes.torrentlist.torrentactions.action_torrent_info(mode=None, torrent_ids=None, **kwargs)
deluge.ui.console.modes.torrentlist.torrentactions.torrent_action(action, *args, **kwargs)
deluge.ui.console.modes.torrentlist.torrentactions.torrent_actions_popup(mode, torrent_ids, details=False, action=None, close_cb=None)

deluge.ui.console.modes.torrentlist.torrentlist module

class deluge.ui.console.modes.torrentlist.torrentlist.TorrentList(stdscr, encoding=None)

Bases: BaseMode, PopupsHandler

on_config_changed()
on_resize(rows, cols)
read_input()
refresh(lines=None)

Refreshes the screen. Updates the lines based on the`:attr:lines` based on the :attr:display_lines_offset attribute and the status bars.

resume()
set_minor_mode(mode)
show_torrent_details(tid)
start()
toggle_sidebar()
torrentview_columns()
update()

deluge.ui.console.modes.torrentlist.torrentview module

class deluge.ui.console.modes.torrentlist.torrentview.TorrentView(torrentlist, config)

Bases: InputKeyHandler

add_marked(indices, last_marked)
clear_marked()
current_torrent_id()
handle_read(c)

Handle a character read from curses screen

Returns:

int – One of the constants defined in util.curses_util.ReadState. ReadState.IGNORED: The key was not handled. Further processing should continue. ReadState.READ: The key was read and processed. Do no further processing ReadState.CHANGED: The key was read and processed. Internal state was changed leaving data to be read by the caller.

mark_unmark(idx)
on_config_changed()
property rows
set_torrent_filter(state)
property torrent_rows
property torrentlist_offset
update(refresh=False)
update_columns()
update_marked(index, last_mark=True, clear=False)
update_state(state, refresh=False)
update_torrents(lines)

deluge.ui.console.modes.torrentlist.torrentviewcolumns module

class deluge.ui.console.modes.torrentlist.torrentviewcolumns.ColumnAndWidth(parent, name, message, child, on_width_func, **kwargs)

Bases: CheckedPlusInput

handle_read(c)

Handle a character read from curses screen

Returns:

int – One of the constants defined in util.curses_util.ReadState. ReadState.IGNORED: The key was not handled. Further processing should continue. ReadState.READ: The key was read and processed. Do no further processing ReadState.CHANGED: The key was read and processed. Internal state was changed leaving data to be read by the caller.

class deluge.ui.console.modes.torrentlist.torrentviewcolumns.TorrentViewColumns(torrentlist)

Bases: InputPopup

handle_read(c)

Handle a character read from curses screen

Returns:

int – One of the constants defined in util.curses_util.ReadState. ReadState.IGNORED: The key was not handled. Further processing should continue. ReadState.READ: The key was read and processed. Do no further processing ReadState.CHANGED: The key was read and processed. Internal state was changed leaving data to be read by the caller.

Module contents

class deluge.ui.console.modes.torrentlist.ACTION

Bases: object

DETAILS = 'torrent_details'
EDIT_TRACKERS = 3
MOVE_STORAGE = 'move_download_folder'
PAUSE = 'pause'
QUEUE = 'queue'
QUEUE_BOTTOM = 'queue_bottom'
QUEUE_DOWN = 'queue_down'
QUEUE_TOP = 'queue_top'
QUEUE_UP = 'queue_up'
REANNOUNCE = 'update_tracker'
RECHECK = 'force_recheck'
REMOVE = 'remove_torrent'
REMOVE_DATA = 6
REMOVE_NODATA = 7
RESUME = 'resume'
TORRENT_OPTIONS = 'torrent_options'