def __init__(self, user): Thread.__init__(self) self.name = 'syncthread' self.user = user self.signal = sSignal(args=['message']) self.new = sSignal(args=['course']) self.old = sSignal(args=['course'])
def __init__(self, user, topdir, parent=None): super(DownloadThread, self).__init__(parent) self.user = user self.topdir = topdir self.start_download_s = MySignal() self.start_download_s.sig.connect(self._work) if parent: self.status_signal = MySignal() self.status_signal.sig.connect(parent.update_status_bar) self.dumpuser = MySignal() self.download_signal = sSignal(args=['course']) self.initial_sizes = sSignal(args=['course']) self.date_signal = sSignal(args=['data'])
def __init__(self, username, password): self.username = username self.password = password self.session = requests.Session() self.logged = False self.courses_url = "" self.available_courses = Courses() self.root_save_folder = "" self.chunk_download = sSignal(args=['course'])
def __init__(self, username, password): self.username = username self.password = password self.session = requests.Session() self.logged = False self.subscribed_courses = [] self.courses_url = "" self.available_courses = Courses() self.root_save_folder = "" self.chunk_download = sSignal(args=['course'])
def __init__(self, username, password, use_json_endpoint=False, default_timeout=10): self.username = username self.password = password self._use_json_endpoint = use_json_endpoint self.session = requests.Session() self.default_timeout = default_timeout self.logged = False self.courses_url = "" self.available_courses = Courses() self.root_save_folder = "" self.chunk_download = sSignal(args=['course'])
def __init__(self, user): Thread.__init__(self) self.name = 'loginthread' self.user = user self.login_status = sSignal(args=['message'])
def __init__(self, user, topdir): self.user = user self.topdir = topdir self.download_signal = sSignal(args=['course']) self.initial_sizes = sSignal(args=['course']) self.data_signal = sSignal(args=['data'])