Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/o/c/ochDownloader-HEAD/qt/downloads.py   ochDownloader(Download)
        id_item_list = [row[0] for row in self.items]
        api.start_all(id_item_list)
        stopped_icon = self.icons_dict[cons.STATUS_STOPPED]
        queue_icon = self.icons_dict[cons.STATUS_QUEUE]
        for row in self.items:
    def on_stop_all(self):
        api.stop_all()
        stopped_icon = self.icons_dict[cons.STATUS_STOPPED]
        queue_icon = self.icons_dict[cons.STATUS_QUEUE]
        for row in self.items:
        premium = media.get_pixmap(media.ACCOUNTS, media.SMALL)
 
        return {cons.STATUS_RUNNING: running, cons.STATUS_STOPPED: stopped,
                cons.STATUS_QUEUE: queue, cons.STATUS_FINISHED: finished,
                cons.STATUS_ERROR: error, 

src/o/c/ochDownloader-HEAD/core/download_managment/manager.py   ochDownloader(Download)
            self.update_download_item(th, download_item)
            old_status = download_item.status
            if old_status in (cons.STATUS_STOPPED, cons.STATUS_FINISHED, cons.STATUS_ERROR):
 
                if old_status == cons.STATUS_STOPPED:
                    download_item.fail_count += 1
                    if download_item.fail_count > conf.get_retries_limit():
                        download_item.status = cons.STATUS_STOPPED
                        self.stopped_downloads[id_item] = download_item
                    else:
                if old_status == cons.STATUS_FINISHED:
                    events.download_complete.emit(download_item)
                if not self.active_downloads and old_status != cons.STATUS_STOPPED:
                    events.all_downloads_complete.emit()
                if th.limit_exceeded and self.active_downloads and old_status == cons.STATUS_ERROR:
    def update_download_item(self, th, download_item):
        #th = self.thread_downloads[download_item.id]
 
        if th.error_flag and th.stop_flag: #fix on stopped failed download
            status = cons.STATUS_STOPPED

src/o/c/ochDownloader-HEAD/core/download/item.py   ochDownloader(Download)
    def _speed(self):
        """"""
        if not self.start_time or self.status in (cons.STATUS_FINISHED, cons.STATUS_STOPPED, cons.STATUS_ERROR):
            return 0
        size_complete = self.size_complete

src/o/c/ochDownloader-HEAD/core/download/downloader.py   ochDownloader(Download)
            else:
                self.stop_flag = True
                self.status = cons.STATUS_STOPPED
                self.status_msg = "Stopped"
                logger.debug(err)

src/o/c/ochDownloader-HEAD/qt/main.py   ochDownloader(Download)
                if stopped:
                    if items[row][1] == self.downloads.icons_dict[cons.STATUS_QUEUE]:
                        items[row][1] = self.downloads.icons_dict[cons.STATUS_STOPPED]
                    self.stop[BTN].setEnabled(False)
                    self.start[BTN].setEnabled(True)

src/o/c/ochDownloader-HEAD/addons/captcha/captcha_gui.py   ochDownloader(Download)
        for id_item in id_item_list:
            row = self.parent.downloads.rows_buffer[id_item]
            row[1] = self.parent.downloads.icons_dict[cons.STATUS_STOPPED]
        self.reject()