Exemplo n.º 1
0
 def reload_works_from_database(self, lock):
     """在程序启动时,读取数据库中的下载任务信息,并启动"""
     print('Reloading: infos of download works ...')
     downloadWorksModel = DownloadWorksModel()
     for row in range(downloadWorksModel.get_length()):
         args = downloadWorksModel.get_work_info_at_row(row)
         args.append(lock)
         self.add_a_download_work(*args)
     downloadWorksModel.clear_log_file()
Exemplo n.º 2
0
 def reload_works_from_database(self, lock):
     """在程序启动时,读取数据库中的下载任务信息,并启动"""
     print("Reloading: infos of download works ...")
     downloadWorksModel = DownloadWorksModel()
     for row in range(downloadWorksModel.get_length()):
         args = downloadWorksModel.get_work_info_at_row(row)
         args.append(lock)
         self.add_a_download_work(*args)
     downloadWorksModel.clear_log_file()