示例#1
0
    def __init__(self, download_item, bucket):
        """"""
        DownloaderBase.__init__(self, download_item, bucket)

        #Threading stuff
        self.lock1 = threading.Lock()  # lock to write file.
        self.lock2 = threading.Lock()

        self.chunks = download_item.chunks[:] if download_item.chunks else []  # shallow copy
        self.chunks_control = []

        self.first_flag = True
        self.conn_count = 0

        self.max_conn = conf.get_max_conn()
示例#2
0
    def __init__(self, download_item, bucket):
        """"""
        DownloaderBase.__init__(self, download_item, bucket)

        #Threading stuff
        self.lock1 = threading.Lock()  # lock to write file.
        self.lock2 = threading.Lock()

        self.chunks = download_item.chunks[:] if download_item.chunks else [
        ]  # shallow copy
        self.chunks_control = []

        self.first_flag = True
        self.conn_count = 0

        self.max_conn = conf.get_max_conn()
示例#3
0
 def load(self):
     self.retries_box.setValue(conf.get_retries_limit())
     if conf.get_html_dl():
         self.html_box.toggle()
     self.conn_box.setValue(conf.get_max_conn())
示例#4
0
 def load(self):
     self.retries_box.setValue(conf.get_retries_limit())
     if conf.get_html_dl():
         self.html_box.toggle()
     self.conn_box.setValue(conf.get_max_conn())