mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-05 16:13:41 +00:00
Clean-up.
This commit is contained in:
parent
c5d76cf8ee
commit
cb0505405d
@ -73,13 +73,8 @@ class PluginManager:
|
|||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
log.debug("PluginManager shutting down..")
|
log.debug("PluginManager shutting down..")
|
||||||
# Del all plugins to allow them to deconstruct properly
|
|
||||||
for plugin in self.plugins.values():
|
for plugin in self.plugins.values():
|
||||||
plugin.core.shutdown()
|
plugin.core.shutdown()
|
||||||
# del plugin
|
|
||||||
#while plugin is not None:
|
|
||||||
# del plugin
|
|
||||||
|
|
||||||
del self.plugins
|
del self.plugins
|
||||||
|
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
|
@ -31,13 +31,10 @@
|
|||||||
# this exception statement from your version. If you delete this exception
|
# this exception statement from your version. If you delete this exception
|
||||||
# statement from all source files in the program, then also delete it here.
|
# statement from all source files in the program, then also delete it here.
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from core import Core
|
from core import Core
|
||||||
from gtkui import GtkUI
|
from gtkui import GtkUI
|
||||||
|
|
||||||
# Get the logger
|
from deluge.log import LOG as log
|
||||||
log = logging.getLogger("deluge")
|
|
||||||
|
|
||||||
class CorePlugin:
|
class CorePlugin:
|
||||||
def __init__(self, plugin_manager):
|
def __init__(self, plugin_manager):
|
||||||
|
@ -58,7 +58,6 @@ class TorrentQueue:
|
|||||||
except IOError:
|
except IOError:
|
||||||
log.warning("Unable to load queue state file.")
|
log.warning("Unable to load queue state file.")
|
||||||
|
|
||||||
|
|
||||||
def save_state(self):
|
def save_state(self):
|
||||||
"""Save the queue state"""
|
"""Save the queue state"""
|
||||||
try:
|
try:
|
||||||
|
@ -101,7 +101,6 @@ class TorrentView(listview.ListView):
|
|||||||
# We need to get the core session state to know which torrents are in
|
# We need to get the core session state to know which torrents are in
|
||||||
# the session so we can add them to our list.
|
# the session so we can add them to our list.
|
||||||
session_state = functions.get_session_state(self.core)
|
session_state = functions.get_session_state(self.core)
|
||||||
print "session_state:", session_state
|
|
||||||
for torrent_id in session_state:
|
for torrent_id in session_state:
|
||||||
self.add_row(torrent_id)
|
self.add_row(torrent_id)
|
||||||
|
|
||||||
@ -172,7 +171,6 @@ class TorrentView(listview.ListView):
|
|||||||
"""Adds a new torrent row to the treeview"""
|
"""Adds a new torrent row to the treeview"""
|
||||||
# Insert a new row to the liststore
|
# Insert a new row to the liststore
|
||||||
row = self.liststore.append()
|
row = self.liststore.append()
|
||||||
print "columnid:", self.columns["torrent_id"].column_indices[0]
|
|
||||||
# Store the torrent id
|
# Store the torrent id
|
||||||
self.liststore.set_value(
|
self.liststore.set_value(
|
||||||
row,
|
row,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user