~guillaume86/exaile/context-dev

« back to all changes in this revision

Viewing changes to xl/plugins.py

  • Committer: guillaume86
  • Date: 2009-07-25 14:58:51 UTC
  • mfrom: (2141.1.50 exaile-0.3.0)
  • Revision ID: guillaume86-20090725145851-5mtd72f9ze9u1ma6
Added a little hack to adjust zoom level for the new webkit version (and yeah it's working with the ppa version now!)

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
            plugin.enable(self.exaile)
105
105
            self.enabled_plugins[pluginname] = plugin
106
106
            logger.debug(_("Loaded plugin %s")%pluginname)
107
 
        except:
 
107
        except Exception, e:
108
108
            traceback.print_exc()
109
109
            logger.warning(_("Unable to enable plugin %s")%pluginname)
110
110
            common.log_exception(logger)
111
 
            return False
112
 
        return True
 
111
            raise e
113
112
 
114
113
    def disable_plugin(self, pluginname):
115
114
        try:
116
115
            plugin = self.enabled_plugins[pluginname]
117
116
            del self.enabled_plugins[pluginname]
118
117
            plugin.disable(self.exaile)
119
 
        except:
 
118
        except Exception, e:
120
119
            traceback.print_exc()
121
120
            logger.warning(_("Unable to fully disable plugin %s")%pluginname)
122
121
            common.log_exception(logger)
123
 
            return False
124
 
        return True
 
122
            raise e
125
123
 
126
124
    def list_installed_plugins(self):
127
125
        pluginlist = []