def __init__(self, stdscr, encoding=None): PopupsHandler.__init__(self) self.statuses = {} self.all_torrents = None self.hostlist = HostList() BaseMode.__init__(self, stdscr, encoding=encoding) self.update_hosts_status()
def __init__(self): super(WebApi, self).__init__('Web', depend=['SessionProxy']) self.hostlist = HostList() self.core_config = CoreConfig() self.event_queue = EventQueue() try: self.sessionproxy = component.get('SessionProxy') except KeyError: self.sessionproxy = SessionProxy()
def __init__(self): component.Component.__init__(self, 'ConnectionManager') self.gtkui_config = ConfigManager('gtkui.conf') self.hostlist = HostList() self.running = False