def dodownload(self): self.timer.stop() downloader = GBIpboxDownloader(self.session) try: downloader.download() self.currStep = self.getStepWithID('end') except Exception, e: print e self.currStep = self.getStepWithID('nodownload')
def onIpboxDownloadTimer(self): self.ipboxdownloadtimer.stop() now = int(time()) wake = self.getTodayScheduledTime() if wake - now < 60: downloader = GBIpboxDownloader(self.session) try: downloader.download() except Exception, e: print e
def dodownload(self): self.timer.stop() downloader = GBIpboxDownloader(self.session) try: downloader.download() self.currStep = self.getStepWithID('end') except Exception as e: print(str(e)) self.currStep = self.getStepWithID('nodownload') self.currStep += 1 self.updateValues()
def download(self): self.timer.stop() downloader = GBIpboxDownloader(self.session) try: downloader.download() self.messagebox.close() self.timer = eTimer() self.timer.callback.append(self.downloadCompleted) self.timer.start(100) except Exception as e: print(str(e)) self.messagebox.close() self.timer = eTimer() self.timer.callback.append(self.downloadError) self.timer.start(100)
def download(self): self.timer.stop() downloader = GBIpboxDownloader(self.session) try: downloader.download() self.messagebox.close() self.timer = eTimer() self.timer.callback.append(self.downloadCompleted) self.timer.start(100) except Exception, e: print e self.messagebox.close() self.timer = eTimer() self.timer.callback.append(self.downloadError) self.timer.start(100)