예제 #1
0
	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')
예제 #2
0
 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
예제 #3
0
	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
예제 #4
0
 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()
예제 #5
0
 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)
예제 #6
0
	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)