Rename the daemons PluginManager component to CorePluginManager to not

conflict with the gtkui in Classic mode.
This commit is contained in:
Andrew Resch 2009-01-28 23:10:44 +00:00
commit 6a0594b47d
3 changed files with 4 additions and 4 deletions

View file

@ -664,12 +664,12 @@ class Core(component.Component):
f = open(os.path.join(self.config["config_location"], "plugins", filename), "wb") f = open(os.path.join(self.config["config_location"], "plugins", filename), "wb")
f.write(plugin_data.data) f.write(plugin_data.data)
f.close() f.close()
component.get("PluginManager").scan_for_plugins() component.get("CorePluginManager").scan_for_plugins()
@export() @export()
def rescan_plugins(self): def rescan_plugins(self):
"""Rescans the plugin folders for new plugins""" """Rescans the plugin folders for new plugins"""
component.get("PluginManager").scan_for_plugins() component.get("CorePluginManager").scan_for_plugins()
@export() @export()
def rename_files(self, torrent_id, filenames): def rename_files(self, torrent_id, filenames):

View file

@ -38,7 +38,7 @@ class PluginManager(deluge.pluginmanagerbase.PluginManagerBase,
functions to access parts of the core.""" functions to access parts of the core."""
def __init__(self, core): def __init__(self, core):
component.Component.__init__(self, "PluginManager") component.Component.__init__(self, "CorePluginManager")
self.core = core self.core = core
# Set up the hooks dictionary # Set up the hooks dictionary
self.hooks = { self.hooks = {

View file

@ -168,7 +168,7 @@ class TorrentManager(component.Component):
def start(self): def start(self):
# Get the pluginmanager reference # Get the pluginmanager reference
self.plugins = component.get("PluginManager") self.plugins = component.get("CorePluginManager")
self.signals = component.get("SignalManager") self.signals = component.get("SignalManager")