Esempio n. 1
0
 def back_to_overview(self):
     component.stop(["TorrentDetail"])
     component.deregister(self)
     self.stdscr.erase()
     component.get("ConsoleUI").set_mode(self.alltorrentmode)
     self.alltorrentmode._go_top = False
     self.alltorrentmode.resume()
Esempio n. 2
0
 def back_to_overview(self):
     component.stop(["TorrentDetail"])
     component.deregister(self)
     self.stdscr.erase()
     component.get("ConsoleUI").set_mode(self.alltorrentmode)
     self.alltorrentmode._go_top = False
     self.alltorrentmode.resume()
Esempio n. 3
0
    def disable_plugin(self, name):
        """Disables a plugin"""
        try:
            self.plugins[name].disable()
            component.deregister(self.plugins[name].plugin)
            del self.plugins[name]
            self.config["enabled_plugins"].remove(name)
        except KeyError:
            log.warning("Plugin %s is not enabled..", name)

        log.info("Plugin %s disabled..", name)
    def disable_plugin(self, name):
        """Disables a plugin"""
        try:
            self.plugins[name].disable()
            component.deregister(self.plugins[name].plugin._component_name)
            del self.plugins[name]
            self.config["enabled_plugins"].remove(name)
        except KeyError:
            log.warning("Plugin %s is not enabled..", name)

        log.info("Plugin %s disabled..", name)
Esempio n. 5
0
 def on_disabled(result):
     ret = True
     if isinstance(result, Failure):
         log.debug('Error when disabling plugin %s: %s', name, result.getTraceback())
         ret = False
     try:
         component.deregister(self.plugins[name].plugin)
         del self.plugins[name]
         self.config['enabled_plugins'].remove(name)
     except Exception as ex:
         log.warning('Problems occured disabling plugin: %s', name)
         log.debug(ex)
         ret = False
     else:
         log.info('Plugin %s disabled...', name)
     return ret
Esempio n. 6
0
 def finish_start_with_depends(self, *args):
     for c in args[1:]:
         component.deregister(c._component_name)
Esempio n. 7
0
 def tearDown(self):
     return component.deregister("SessionProxy")
Esempio n. 8
0
 def finish_start_with_depends(self, *args):
     for c in args[1:]:
         component.deregister(c)
 def tearDown(self):
     return component.deregister("SessionProxy")
Esempio n. 10
0
 def tearDown(self):
     return component.deregister(self.sp)
Esempio n. 11
0
 def tear_down(self):
     return component.deregister(self.sp)