From fdd36483230b5f4602afa157e608a85c873bb9fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Bili=C5=84ski?= Date: Sun, 8 Jun 2008 16:36:46 +0000 Subject: [PATCH] Small improvements: plug-in instance object dereferenced on deactivation. 'gajim.plugin_system' logger doesn't set level DEBUG by default (have to use command-line option '-l' from now on). --- src/plugins/helpers.py | 4 ++-- src/plugins/pluginmanager.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/helpers.py b/src/plugins/helpers.py index 744f209ac..3379bd300 100644 --- a/src/plugins/helpers.py +++ b/src/plugins/helpers.py @@ -35,11 +35,11 @@ Logger for code related to plug-in system. ''' consoleloghandler = logging.StreamHandler() -consoleloghandler.setLevel(1) +#consoleloghandler.setLevel(1) consoleloghandler.setFormatter( logging.Formatter('%(levelname)s: %(message)s')) #logging.Formatter('%(asctime)s %(name)s: %(levelname)s: %(message)s')) -log.setLevel(logging.DEBUG) +#log.setLevel(logging.DEBUG) log.addHandler(consoleloghandler) log.propagate = False diff --git a/src/plugins/pluginmanager.py b/src/plugins/pluginmanager.py index 359ec3805..fa3ab729e 100644 --- a/src/plugins/pluginmanager.py +++ b/src/plugins/pluginmanager.py @@ -195,6 +195,7 @@ class PluginManager(object): # removing plug-in from active plug-ins list self.active_plugins.remove(plugin_object) plugin_object.__class__._active = False + plugin_object.__class__._instance = None del plugin_object def deactivate_all_plugins(self):