def menuCallback(self, menuinfo):
		try:
			menuinfo = menuinfo and menuinfo[1]
			if menuinfo:
				if menuinfo == "MENU_RETURN_RESTORE_DATE":
					if epgbackup:
						epgbackup.forceRestore()
				elif menuinfo == "MENU_RETURN_RESTORE_SIZE":
					if epgbackup:
						epgbackup.forceRestoreBySize()
				elif menuinfo == "MENU_RETURN_DO_BACKUP":
					if epgbackup:
						epgbackup.makeBackup(interactive=True)
				elif menuinfo == "MENU_RETURN_SET_NEXT_BOOT_RESTORE":
					if epgbackup:
						epgbackup.setNextBootRestore()
				elif menuinfo == "MENU_RETURN_MAINHELP":
					self.showMainHelp()
		except:
			debugOut("menuCallback-Error:\n" + str(format_exc()), forced=True)
Exemplo n.º 2
0
	def menuCallback(self, menuinfo):
		try:
			menuinfo = menuinfo and menuinfo[1]
			if menuinfo:
				if menuinfo == "MENU_RETURN_RESTORE_DATE":
					if epgbackup:
						epgbackup.forceRestore()
				elif menuinfo == "MENU_RETURN_RESTORE_SIZE":
					if epgbackup:
						epgbackup.forceRestoreBySize()
				elif menuinfo == "MENU_RETURN_DO_BACKUP":
					if epgbackup:
						epgbackup.makeBackup(interactive = True)
				elif menuinfo == "MENU_RETURN_SET_NEXT_BOOT_RESTORE":
					if epgbackup:
						epgbackup.setNextBootRestore()
				elif menuinfo == "MENU_RETURN_MAINHELP":
					self.showMainHelp()
		except:
			debugOut("menuCallback-Error:\n" + str(format_exc()), forced=True)