Author: vardo Date: 2008-08-04 00:02:53 +0200 (Mon, 04 Aug 2008) New Revision: 10119
Modified: branches/plugin-system/src/plugins/gui.py branches/plugin-system/src/plugins/helpers.py branches/plugin-system/src/plugins/plugin.py branches/plugin-system/src/plugins/pluginmanager.py Log: GUI extension points removal working properly now.
Modified: branches/plugin-system/src/plugins/gui.py =================================================================== --- branches/plugin-system/src/plugins/gui.py 2008-08-03 21:48:30 UTC (rev 10118) +++ branches/plugin-system/src/plugins/gui.py 2008-08-03 22:02:53 UTC (rev 10119) @@ -203,11 +203,6 @@ self.child.set_spacing(3) self.init() - - #label = gtk.Label(_('<b>%s Configuration</b>') % (plugin.name)) - #label.set_markup(label.get_label()) - #self.child.pack_start(label, False, False) - @log_calls('GajimPluginConfigDialog') def run(self, parent=None): @@ -222,4 +217,4 @@ pass def on_run(self): - pass \ No newline at end of file + pass
Modified: branches/plugin-system/src/plugins/helpers.py =================================================================== --- branches/plugin-system/src/plugins/helpers.py 2008-08-03 21:48:30 UTC (rev 10118) +++ branches/plugin-system/src/plugins/helpers.py 2008-08-03 22:02:53 UTC (rev 10119) @@ -50,7 +50,7 @@ Decorator class for functions to easily log when they are entered and left. '''
- filter_out_classes = ['GajimPlugin', 'GajimPluginConfig', + filter_out_classes = ['GajimPlugin', 'GajimPluginConfig', 'PluginManager', 'GajimPluginConfigDialog', 'PluginsWindow'] ''' List of classes from which no logs should be emited when methods are called,
Modified: branches/plugin-system/src/plugins/plugin.py =================================================================== --- branches/plugin-system/src/plugins/plugin.py 2008-08-03 21:48:30 UTC (rev 10118) +++ branches/plugin-system/src/plugins/plugin.py 2008-08-03 22:02:53 UTC (rev 10119) @@ -193,7 +193,7 @@ @log_calls('GajimPluginConfig') def save(self): self.data.sync() - log.debug(str(self.data)) + #log.debug(str(self.data))
@log_calls('GajimPluginConfig') def load(self):
Modified: branches/plugin-system/src/plugins/pluginmanager.py =================================================================== --- branches/plugin-system/src/plugins/pluginmanager.py 2008-08-03 21:48:30 UTC (rev 10118) +++ branches/plugin-system/src/plugins/pluginmanager.py 2008-08-03 22:02:53 UTC (rev 10119) @@ -200,7 +200,10 @@ extension point name) to identify element to be removed. :type args: tuple ''' - log.debug('name: %s\n args: %s'%(gui_extpoint_name, args)) + + if gui_extpoint_name in self.gui_extension_points: + log.debug('Removing GUI extpoint\n name: %s\n args: %s'%(gui_extpoint_name, args)) + self.gui_extension_points[gui_extpoint_name].remove(args) @log_calls('PluginManager')