Esempio n. 1
0
	def createBackupfolders(self):
		print 'Creating backup folder if not already there...'
		self.backuppath = getBackupPath()
		try:
			if os_path.exists(self.backuppath) == False:
				makedirs(self.backuppath)
		except OSError:
			self.session.open(MessageBox, _('Sorry, your backup destination is not writeable.\nPlease select a different one.'), MessageBox.TYPE_INFO, timeout=10)
Esempio n. 2
0
	def createBackupfolders(self):
		print "Creating backup folder if not already there..."
		self.backuppath = getBackupPath()
		try:
			if (os_path.exists(self.backuppath) == False):
				makedirs(self.backuppath)
		except OSError:
			self.session.open(MessageBox, _("Sorry, your backup destination is not writeable.\nPlease select a different one."), MessageBox.TYPE_INFO, timeout = 10)
Esempio n. 3
0
	def okSubList(self):
		item = self["sublist"].getCurrent()

######## Select Network Menu ##############################
		if item[0] == _("Network Wizard"):
			self.session.open(NetworkWizard)
		elif item[0] == _("Network Adapter Selection"):
			self.session.open(NetworkAdapterSelection)
		elif item[0] == _("Network Interface"):
			self.session.open(AdapterSetup,self.activeInterface)
		elif item[0] == _("Network Restart"):
			self.session.open(RestartNetwork)
		elif item[0] == _("Network Services"):
			self.Qnetworkservices()
			self["sublist"].moveToIndex(0)
		elif item[0] == _("iperf Net_test"):
			self.session.open(Net_test)
		elif item[0] == _("Telnet Command"):
			self.session.open(TelnetCommand)                        			
		elif item[0] == _("Samba"):
			self.session.open(NetworkSamba)
		elif item[0] == _("NFS"):
			self.session.open(NetworkNfs)
		elif item[0] == _("FTP"):
			self.session.open(NetworkFtp)
		elif item[0] == _("AFP"):
			self.session.open(NetworkAfp)
		elif item[0] == _("OpenVPN"):
			self.session.open(NetworkOpenvpn)
		elif item[0] == _("MiniDLNA"):
			self.session.open(NetworkMiniDLNA)
		elif item[0] == _("Inadyn"):
			self.session.open(NetworkInadyn)
		elif item[0] == _("SABnzbd"):
			self.session.open(NetworkSABnzbd)
		elif item[0] == _("uShare"):
			self.session.open(NetworkuShare)
		elif item[0] == _("Telnet"):
			self.session.open(NetworkTelnet)
		elif item[0] == _("Network Configs"):
			self.session.open(OpenNFRWizardSetup)			
######## Select System Setup Menu ##############################
		elif item[0] == _("Customise"):
			self.openSetup("usage")
		elif item[0] == _("Button Setup"):
			self.openSetup("remotesetup")
		elif item[0] == _("OSD settings"):
			self.openSetup("userinterface")
		elif item[0] == _("Channel selection"):
			self.openSetup("channelselection")
		elif item[0] == _("Recording settings"):
			self.openSetup("recording")
		elif item[0] == _("EPG settings"):
			self.openSetup("epgsettings")
######## Select Mounts Menu ##############################
		elif item[0] == _("Mount Manager"):
			self.session.open(AutoMountManager, None, plugin_path_networkbrowser)
		elif item[0] == _("Network Browser"):
			self.session.open(NetworkBrowser, None, plugin_path_networkbrowser)
		elif item[0] == _("HDD Manager"):
			self.session.open(HddSetup)
		elif item[0] == _("HDD Fast Umount"):
			self.session.open(HddFastRemove)			
		elif item[0] == _("SWAP Manager"):
			self.session.open(SwapOverviewScreen)	
######## Select Softcam Menu ##############################
		elif item[0] == _("Softcam Panel"):
       			self.session.open(NFRCamManager)
       	        elif item[0] == _("Softcam Config Edit"):
			self.Qsoftcamedit()
			self["sublist"].moveToIndex(0)
######## Select OscamEdit Menu ##############################
		elif item[0] == _("Oscam Config Edit"):
			self.Qoscamedit()
			self["sublist"].moveToIndex(0)
######## Select CCcam Config Edit Menu ##############################
		elif item[0] == _("CCcam Config Edit"):
			self.QCCcamedit()
			self["sublist"].moveToIndex(0)			
######## Select Mgcamd Config Edit Menu ##############################
		elif item[0] == _("Mgcamd Config Edit"):
			self.QMgcamdedit()
			self["sublist"].moveToIndex(0)					
######## Select Camd3 Config Edit Menu ##############################
		elif item[0] == _("Camd3 Config Edit"):
			self.QCamd3edit()
			self["sublist"].moveToIndex(0)					
######## Select Gbox Config Edit Menu ##############################
		elif item[0] == _("Gbox Config Edit"):
			self.QGboxedit()
			self["sublist"].moveToIndex(0)					
######## Select Wicard Config Edit Menu ##############################
		elif item[0] == _("Wicard Config Edit"):
			self.QWicarddedit()
			self["sublist"].moveToIndex(0)
		elif item[0] == _("Oscam.server Edit"):
			self.session.open(vEditor, "/usr/keys/oscam.server")	
		elif item[0] == _("Oscam.user Edit"):
			self.session.open(vEditor, "/usr/keys/oscam.user")	
		elif item[0] == _("Oscam.conf Edit"):
			self.session.open(vEditor, "/usr/keys/oscam.conf")	
		elif item[0] == _("Oscam.dvbapi Edit"):
			self.session.open(vEditor, "/usr/keys/oscam.dvbapi")	
		elif item[0] == _("CCcam.cfg Edit"):
			self.session.open(vEditor, "/usr/keys/CCcam.cfg")	
		elif item[0] == _("mg.cfg Edit"):
			self.session.open(vEditor, "/usr/keys/mg_cfg")	
		elif item[0] == _("Mgcamd cccamd.list Edit"):
			self.session.open(vEditor, "/usr/keys/cccamd.list")	
		elif item[0] == _("Mgcamd newcamd.list Edit"):
			self.session.open(vEditor, "/usr/keys/newcamd.list")	
		elif item[0] == _("camd3.config Edit"):
			self.session.open(vEditor, "/usr/keys/camd3.config")	
		elif item[0] == _("camd3.users Edit"):
			self.session.open(vEditor, "/usr/keys/camd3.users")	
		elif item[0] == _("camd3.servers Edit"):
			self.session.open(vEditor, "/usr/keys/camd3.servers")	
		elif item[0] == _("gbox.cfg Edit"):
			self.session.open(vEditor, "/usr/keys/gbox_cfg")	
		elif item[0] == _("cwshare.cfg Edit"):
			self.session.open(vEditor, "/usr/keys/cwshare.cfg")	
		elif item[0] == _("wicardd.conf Edit"):
			self.session.open(vEditor, "/usr/keys/wicardd.conf")				
######## Select Screenshot Menu ##############################
		elif item[0] == _("OSD"):
                        self.Console = Console()
                        self.Console.ePopen("/usr/lib/enigma2/python/Plugins/Extensions/Infopanel/data/screenshot.sh o ExecuteOnce")
       		elif item[0] == _("VIDEO"):
       		        self.Console = Console()
                        self.Console.ePopen("/usr/lib/enigma2/python/Plugins/Extensions/Infopanel/data/screenshot.sh v ExecuteOnce")
       		elif item[0] == _("ALL"):
       		        self.Console = Console()
                        self.Console.ePopen("/usr/lib/enigma2/python/Plugins/Extensions/Infopanel/data/screenshot.sh ExecuteOnce")
######## Select moveplugins Menu ##############################
		elif item[0] == _("Move Plugins to HDD/USB"):
        		        self.session.open(MovePlugins)
       		elif item[0] == _("Move Plugins back to Box"):
       		                self.session.open(MovePlugins_int)
 ######## Select AV Setup Menu ##############################
		elif item[0] == _("AV Settings"):
			self.session.open(VideoSetup)
		elif item[0] == _("Auto Language"):
			self.openSetup("autolanguagesetup")
		elif item[0] == _("Audio Sync"):
			self.session.open(AC3LipSyncSetup, plugin_path_audiosync)
		elif item[0] == _("VideoEnhancement"):
			self.session.open(VideoEnhancementSetup)
		elif item[0] == _("AutoResolution"):
			self.session.open(AutoResSetupMenu)
######## Select TUNER Setup Menu ##############################
		elif item[0] == _("Tuner Configuration"):
			self.session.open(NimSelection)
		elif item[0] == _("Positioner Setup"):
			self.PositionerMain()
		elif item[0] == _("Automatic Scan"):
			self.session.open(ScanSimple)
		elif item[0] == _("Manual Scan"):
			self.session.open(ScanSetup)
		elif item[0] == _("Sat Finder"):
			self.SatfinderMain()
		elif item[0] == _("Sat Loader"):
			self.session.open(Satloader)			
######## Select Software Manager Menu ##############################
		elif item[0] == _("Software Update"):
			#self.session.open(UpdatePlugin)
			self.session.open(SoftwarePanel)
		elif item[0] == _("Flash Local-Online"):
                        self.session.open(FlashOnline)
                               			
		elif item[0] == _("Complete Backup"):
			if DFLASH == True:
				self.session.open(dFlash)
			else:
				self.session.open(ImageBackup)
		elif item[0] == _("Backup Settings"):
			self.session.openWithCallback(self.backupDone,BackupScreen, runBackup = True)
		elif item[0] == _("Restore Settings"):
			self.backuppath = getBackupPath()
			self.backupfile = getBackupFilename()
			self.fullbackupfilename = self.backuppath + "/" + self.backupfile
			if os_path.exists(self.fullbackupfilename):
				self.session.openWithCallback(self.startRestore, MessageBox, _("Are you sure you want to restore your %s %s backup?\nSTB will restart after the restore") % (getMachineBrand(), getMachineName()))
			else:
				self.session.open(MessageBox, _("Sorry no backups found!"), MessageBox.TYPE_INFO, timeout = 10)
		elif item[0] == _("Select Backup files"):
			self.session.openWithCallback(self.backupfiles_choosen,BackupSelection)
		elif item[0] == _("Software Manager Setup"):
			self.session.open(SoftwareManagerSetup)
######## Select PluginDownloadBrowser Menu ##############################
		elif item[0] == _("Plugin Browser"):
			self.session.open(PluginBrowser)
		elif item[0] == _("Download Plugins"):
			self.session.open(PluginDownloadBrowser, 0)
		elif item[0] == _("Remove Plugins"):
			self.session.open(PluginDownloadBrowser, 1)
		elif item[0] == _("IPK Installer"):
			try:
				from Plugins.Extensions.MediaScanner.plugin import main
				main(self.session)
			except:
				self.session.open(MessageBox, _("Sorry MediaScanner is not installed!"), MessageBox.TYPE_INFO, timeout = 10)
		elif item[0] == _("Move Plugins"):
			self.Qmoveplugins()	
			self["sublist"].moveToIndex(0)				
######## Select Harddisk Menu ############################################
		elif item[0] == _("Harddisk Setup"):
			self.openSetup("harddisk")
		elif item[0] == _("Initialization"):
			self.session.open(HarddiskSelection)
		elif item[0] == _("Filesystem Check"):
			self.session.open(HarddiskFsckSelection)
		elif item[0] == _("Convert ext3 to ext4"):
			self.session.open(HarddiskConvertExt4Selection)
######## Select E2-Log Menu ############################################
		elif item[0] == _("E2 Log"):
			self.session.open(E2log)
		elif item[0] == _("LogManager"): 
			self.session.open(LogManager) 
			
######## Select tar Menu ############################################
		elif item[0] == _("PackageManager"):
			self.session.open(InfopanelManagerScreen)			
Esempio n. 4
0
    def okSubList(self):
        item = self["sublist"].getCurrent()
        selected = item[0][0]

        ######## Select Network Menu ##############################
        if selected == _("Network wizard"):
            self.session.open(NetworkWizard)
        elif selected == _("Network adapter selection"):
            self.session.open(NetworkAdapterSelection)
        elif selected == _("Network interface"):
            self.session.open(AdapterSetup, self.activeInterface)
        elif selected == _("Network restart"):
            self.session.open(RestartNetwork)
        elif selected == _("Network services"):
            self.Qnetworkservices()
            self["sublist"].moveToIndex(0)
        elif selected == _("Samba"):
            self.session.open(NetworkSamba)
        elif selected == _("NFS"):
            self.session.open(NetworkNfs)
        elif selected == _("FTP"):
            self.session.open(NetworkFtp)
        elif selected == _("AFP"):
            self.session.open(NetworkAfp)
        elif selected == _("OpenVPN"):
            self.session.open(NetworkOpenvpn)
        elif selected == _("DLNA server"):
            self.session.open(NetworkMiniDLNA)
        elif selected == _("DYN-DNS"):
            self.session.open(NetworkInadyn)
# 		elif selected == _("SABnzbd"):
# 			self.session.open(NetworkSABnzbd)
        elif selected == _("uShare"):
            self.session.open(NetworkuShare)
        elif selected == _("Telnet"):
            self.session.open(NetworkTelnet)
######## Select AV Setup Menu ##############################
        elif selected == _("AV setup"):
            self.Qavsetup()
######## Select System Setup Menu ##############################
        elif selected == _("Time settings"):
            self.openSetup("time")
        elif selected == _("Language settings"):
            self.session.open(LanguageSelection)
        elif selected == _("Front panel settings"):
            self.openSetup("display")
        elif selected == _("Skin setup"):
            self.session.open(SkinSelector)
        elif selected == _("Display skin"):
            self.session.open(LcdSkinSelector)
        elif selected == _("GUI settings"):
            self.openSetup("userinterface")
        elif selected == _("Button settings"):
            self.openSetup("buttonsetup")
        elif selected == _("HDMI-CEC"):
            from Plugins.SystemPlugins.HdmiCEC.plugin import HdmiCECSetupScreen
            self.session.open(HdmiCECSetupScreen)
        elif selected == _("Remote control code settings"):
            from Plugins.SystemPlugins.RemoteControlCode.plugin import RCSetupScreen
            self.session.open(RCSetupScreen)
        elif selected == _("Fan settings"):
            from Plugins.SystemPlugins.FanControl.plugin import FanSetupScreen
            self.session.open(FanSetupScreen)
        elif selected == _("Factory reset"):
            from Screens.FactoryReset import FactoryReset

            def deactivateInterfaceCB(data):
                if data is True:
                    applyConfigDataAvail(True)

            def activateInterfaceCB(self, data):
                if data is True:
                    iNetwork.activateInterface("eth0", applyConfigDataAvail)

            def applyConfigDataAvail(data):
                if data is True:
                    iNetwork.getInterfaces(getInterfacesDataAvail)

            def getInterfacesDataAvail(data):
                if data is True:
                    pass

            def msgClosed(ret):
                if ret:
                    from os import system, _exit
                    system("rm -rf /etc/enigma2")
                    system("rm -rf /etc/network/interfaces")
                    system("rm -rf /etc/wpa_supplicant.ath0.conf")
                    system("rm -rf /etc/wpa_supplicant.wlan0.conf")
                    system("rm -rf /etc/wpa_supplicant.conf")
                    system("cp -a /usr/share/enigma2/defaults /etc/enigma2")
                    system("/usr/bin/showiframe /usr/share/backdrop.mvi")
                    iNetwork.setAdapterAttribute("eth0", "up", True)
                    iNetwork.setAdapterAttribute("eth0", "dhcp", True)
                    iNetwork.activateInterface("eth0", deactivateInterfaceCB)
                    iNetwork.writeNetworkConfig()
                    _exit(
                        2
                    )  # We want a full reboot to ensure new hostname is picked up

            self.session.openWithCallback(msgClosed, FactoryReset)
######## Select TV Setup Menu ##############################
        elif selected == _("Channel selection"):
            self.openSetup("channelselection")
        elif selected == _("Recording settings"):
            from Screens.Recordings import RecordingSettings
            self.session.open(RecordingSettings)
        elif selected == _("Timeshift settings"):
            from Screens.Timershift import TimeshiftSettings
            self.session.open(TimeshiftSettings)
        elif selected == _("Auto language"):
            self.openSetup("autolanguagesetup")
        elif selected == _("Subtitle settings"):
            self.openSetup("subtitlesetup")
        elif selected == _("EPG settings"):
            self.openSetup("epgsettings")
        elif selected == _("Common Interface"):
            from Screens.Ci import CiSelection
            self.session.open(CiSelection)
        elif selected == _("Parental control"):
            from Screens.ParentalControlSetup import ParentalControlSetup
            self.session.open(ParentalControlSetup)
######## Select Mounts Menu ##############################
        elif selected == _("Mount manager"):
            self.session.open(AutoMountManager, None,
                              plugin_path_networkbrowser)
        elif selected == _("Network browser"):
            self.session.open(NetworkBrowser, None, plugin_path_networkbrowser)
        #elif selected == _("Device manager"):
        #	self.session.open(HddMount)
######## Select Media Menu ##############################
        elif selected == _("Picture player"):
            from Plugins.Extensions.PicturePlayer.ui import Pic_Setup
            self.session.open(Pic_Setup)
        elif selected == _("Media player"):
            from Plugins.Extensions.MediaPlayer.settings import MediaPlayerSettings
            self.session.open(MediaPlayerSettings, self)
######## Select AV Setup Menu ##############################
        elif selected == _("AV settings"):
            self.session.open(VideoSetup)
        elif selected == _("Audio sync"):
            self.session.open(AC3LipSyncSetup, plugin_path_audiosync)
        elif selected == _("VideoEnhancement"):
            self.session.open(VideoEnhancementSetup)
        elif selected == _("OSD position"):
            from Screens.UserInterfacePositioner import UserInterfacePositioner
            self.session.open(UserInterfacePositioner)
        elif selected == _("OSD 3D setup"):
            from Screens.UserInterfacePositioner import OSD3DSetupScreen
            self.session.open(OSD3DSetupScreen)
######## Select TUNER Setup Menu ##############################
        elif selected == _("Tuner setup"):
            self.openSetup("tunersetup")
        elif selected == _("Location scan"):
            from Screens.IniTerrestrialLocation import IniTerrestrialLocation
            self.session.open(IniTerrestrialLocation)
        elif selected == _("Remote IP channels"):
            self.session.open(RemoteTunerScanner)
        elif selected == _("Tuner configuration"):
            self.session.open(NimSelection)
        elif HAVE_POSITIONERSETUP and selected == _("Positioner setup"):
            self.PositionerMain()
        elif selected == _("Automatic scan"):
            self.session.open(ScanSimple)
        elif selected == _("Manual scan"):
            self.session.open(ScanSetup)
        elif selected == _("Blind scan"):
            self.session.open(Blindscan)
        elif HAVE_SATFINDER and selected == _("Sat finder"):
            self.SatfinderMain()
        elif HAVE_LCN_SCANNER and selected == _("LCN renumber"):
            self.session.open(LCNScannerPlugin)
######## Select Software Manager Menu ##############################
        elif selected == _("Update now"):
            self.session.open(UpdatePlugin)
        elif selected == _("Update settings"):
            self.openSetup("softwareupdate")
        elif selected == _("Create backup"):
            self.session.openWithCallback(self.backupDone,
                                          BackupScreen,
                                          runBackup=True)
        elif selected == _("Restore backup"):
            self.backuppath = getBackupPath()
            if not path.isdir(self.backuppath):
                self.backuppath = getBackupPath()
            self.backupfile = getBackupFilename()
            self.fullbackupfilename = self.backuppath + "/" + self.backupfile
            if os_path.exists(self.fullbackupfilename):
                self.session.openWithCallback(
                    self.startRestore, MessageBox,
                    _("Are you sure you want to restore your %s %s backup?\nYour %s %s will reboot after the restore"
                      ) % (getMachineBrand(), getMachineName(),
                           getMachineBrand(), getMachineName()))
            else:
                self.session.open(MessageBox,
                                  _("Sorry no backups found!"),
                                  MessageBox.TYPE_INFO,
                                  timeout=10)
        elif selected == _("Backup settings"):
            self.session.openWithCallback(self.backupfiles_choosen,
                                          BackupSelection)
        #elif selected == _("Software Manager Setup"):
        #	self.session.open(SoftwareManagerSetup)
######## Select PluginDownloadBrowser Menu ##############################
        elif selected == _("Plugin browser"):
            self.session.open(PluginBrowser)
        elif selected == _("Download plugins"):
            self.session.open(PluginDownloadBrowser, 0)
        elif selected == _("Remove plugins"):
            self.session.open(PluginDownloadBrowser, 1)
        elif selected == _("Package installer"):
            try:
                from Plugins.Extensions.MediaScanner.plugin import main
                main(self.session)
            except:
                self.session.open(MessageBox,
                                  _("Sorry MediaScanner is not installed!"),
                                  MessageBox.TYPE_INFO,
                                  timeout=10)
######## Select Harddisk Menu ############################################
        elif selected == _("Hard disk setup"):
            self.openSetup("harddisk")
        elif selected == _("Format hard disk"):
            self.session.open(HarddiskSelection)
        elif selected == _("File system check"):
            self.session.open(HarddiskFsckSelection)
        elif selected == _("Convert ext3 to ext4"):
            self.session.open(HarddiskConvertExt4Selection)
Esempio n. 5
0
 def ok(self):
     #// Menu Selection
     #		menu = self["Mlist"].getCurrent()
     global INFOCONF
     menu = self['Mlist'].l.getCurrentSelection()[0][2]
     print '[INFO-Panel] MenuItem: ' + menu
     if menu == "Plugins":
         self.Plugins()
     elif menu == "Pluginbrowser":
         self.session.open(PluginBrowser)
     elif menu == "Infos":
         self.Infos()
     elif menu == "InfoPanel":
         self.session.open(Info, "InfoPanel")
     elif menu == "Info":
         self.session.open(Info, "SystemInfo")
     elif menu == "ImageVersion":
         self.session.open(Info, "ImageVersion")
     elif menu == "FreeSpace":
         self.session.open(Info, "FreeSpace")
     elif menu == "Network":
         self.session.open(Info, "Network")
     elif menu == "Mounts":
         self.session.open(Info, "Mounts")
     elif menu == "Kernel":
         self.session.open(Info, "Kernel")
     elif menu == "Ram":
         self.session.open(Info, "Free")
     elif menu == "Cpu":
         self.session.open(Info, "Cpu")
     elif menu == "Top":
         self.session.open(Info, "Top")
     elif menu == "MemInfo":
         self.session.open(Info, "MemInfo")
     elif menu == "Module":
         self.session.open(Info, "Module")
     elif menu == "Mtd":
         self.session.open(Info, "Mtd")
     elif menu == "Partitions":
         self.session.open(Info, "Partitions")
     elif menu == "Swap":
         self.session.open(Info, "Swap")
     elif menu == "SystemInfo":
         self.System()
     elif menu == "CronManager":
         self.session.open(CronManager)
     elif menu == "JobManager":
         self.session.open(ScriptRunner)
     elif menu == "SoftcamPanel":
         self.session.open(SoftcamPanel)
     elif menu == "software-manager":
         self.Software_Manager()
     elif menu == "software-update":
         self.session.open(SoftwarePanel)
     elif menu == "backup-settings":
         self.session.openWithCallback(self.backupDone,
                                       BackupScreen,
                                       runBackup=True)
     elif menu == "restore-settings":
         self.backuppath = getBackupPath()
         self.backupfile = getBackupFilename()
         self.fullbackupfilename = self.backuppath + "/" + self.backupfile
         if os_path.exists(self.fullbackupfilename):
             self.session.openWithCallback(
                 self.startRestore,
                 MessageBox,
                 _("Are you sure you want to restore your STB backup?\nSTB will restart after the restore"
                   ),
                 default=False)
         else:
             self.session.open(MessageBox,
                               _("Sorry no backups found!"),
                               MessageBox.TYPE_INFO,
                               timeout=10)
     elif menu == "backup-files":
         self.session.openWithCallback(self.backupfiles_choosen,
                                       BackupSelection)
     elif menu == "MultiQuickButton":
         self.session.open(MultiQuickButton)
     elif menu == "MountManager":
         self.session.open(HddMount)
     elif menu == "SundtekControlCenter":
         self.session.open(SundtekControlCenter)
     elif menu == "SwapManager":
         self.session.open(Swap)
     elif menu == "Softcam-Panel Setup":
         self.session.open(ShowSoftcamPanelExtensions)
     elif menu == "KeymapSel":
         self.session.open(KeymapSel)
     else:
         pass
Esempio n. 6
0
	def okSubList(self):
		item = self["sublist"].getCurrent()
		selected = item[0][0]

######## Select Network Menu ##############################
		if selected == _("Network wizard"):
			self.session.open(NetworkWizard)
		elif selected == _("Network adapter selection"):
			self.session.open(NetworkAdapterSelection)
		elif selected == _("Network interface"):
			self.session.open(AdapterSetup, self.activeInterface)
		elif selected == _("Network restart"):
			self.session.open(RestartNetwork)
		elif selected == _("Network services"):
			self.Qnetworkservices()
			self["sublist"].moveToIndex(0)
		elif selected == _("Samba"):
			self.session.open(NetworkSamba)
		elif selected == _("NFS"):
			self.session.open(NetworkNfs)
		elif selected == _("FTP"):
			self.session.open(NetworkFtp)
		elif selected == _("AFP"):
			self.session.open(NetworkAfp)
		elif selected == _("OpenVPN"):
			self.session.open(NetworkOpenvpn)
		elif selected == _("DLNA server"):
			self.session.open(NetworkMiniDLNA)
		elif selected == _("DYN-DNS"):
			self.session.open(NetworkInadyn)
# 		elif selected == _("SABnzbd"):
# 			self.session.open(NetworkSABnzbd)
		elif selected == _("uShare"):
			self.session.open(NetworkuShare)
		elif selected == _("Telnet"):
			self.session.open(NetworkTelnet)
######## Select AV Setup Menu ##############################
		elif selected == _("AV setup"):
			self.Qavsetup()
######## Select System Setup Menu ##############################
		elif selected == _("Time settings"):
			self.openSetup("time")
		elif selected == _("Language settings"):
			self.session.open(LanguageSelection)
		elif selected == _("Front panel settings"):
			self.openSetup("display")
		elif selected == _("Skin setup"):
			self.session.open(SkinSelector)
		elif selected == _("Display skin"):
			self.session.open(LcdSkinSelector)
		elif selected == _("GUI settings"):
			self.openSetup("userinterface")
		elif selected == _("Button settings"):
			self.openSetup("buttonsetup")
		elif selected == _("HDMI-CEC"):
			from Plugins.SystemPlugins.HdmiCEC.plugin import HdmiCECSetupScreen
			self.session.open(HdmiCECSetupScreen)
		elif selected == _("Remote control code settings"):
			from Plugins.SystemPlugins.RemoteControlCode.plugin import RCSetupScreen
			self.session.open(RCSetupScreen)
		elif selected == _("Fan settings"):
			from Plugins.SystemPlugins.FanControl.plugin import FanSetupScreen
			self.session.open(FanSetupScreen)
		elif selected == _("Factory reset"):
			from Screens.FactoryReset import FactoryReset

			def deactivateInterfaceCB(data):
				if data is True:
					applyConfigDataAvail(True)

			def activateInterfaceCB(self, data):
				if data is True:
					iNetwork.activateInterface("eth0", applyConfigDataAvail)

			def applyConfigDataAvail(data):
				if data is True:
					iNetwork.getInterfaces(getInterfacesDataAvail)

			def getInterfacesDataAvail(data):
				if data is True:
					pass

			def msgClosed(ret):
				if ret:
					from os import system, _exit
					system("rm -rf /etc/enigma2")
					system("rm -rf /etc/network/interfaces")
					system("rm -rf /etc/wpa_supplicant.ath0.conf")
					system("rm -rf /etc/wpa_supplicant.wlan0.conf")
					system("rm -rf /etc/wpa_supplicant.conf")
					system("cp -a /usr/share/enigma2/defaults /etc/enigma2")
					system("/usr/bin/showiframe /usr/share/backdrop.mvi")
					iNetwork.setAdapterAttribute("eth0", "up", True)
					iNetwork.setAdapterAttribute("eth0", "dhcp", True)
					iNetwork.activateInterface("eth0", deactivateInterfaceCB)
					iNetwork.writeNetworkConfig()
					_exit(2)  # We want a full reboot to ensure new hostname is picked up
			self.session.openWithCallback(msgClosed, FactoryReset)
######## Select TV Setup Menu ##############################
		elif selected == _("Channel selection"):
			self.openSetup("channelselection")
		elif selected == _("Recording settings"):
			from Screens.Recordings import RecordingSettings
			self.session.open(RecordingSettings)
		elif selected == _("Timeshift settings"):
			from Screens.Timershift import TimeshiftSettings
			self.session.open(TimeshiftSettings)
		elif selected == _("Auto language"):
			self.openSetup("autolanguagesetup")
		elif selected == _("Subtitle settings"):
			self.openSetup("subtitlesetup")
		elif selected == _("EPG settings"):
			self.openSetup("epgsettings")
		elif selected == _("Common Interface"):
			from Screens.Ci import CiSelection
			self.session.open(CiSelection)
		elif selected == _("Parental control"):
			from Screens.ParentalControlSetup import ParentalControlSetup
			self.session.open(ParentalControlSetup)
######## Select Mounts Menu ##############################
		elif selected == _("Mount manager"):
			self.session.open(AutoMountManager, None, plugin_path_networkbrowser)
		elif selected == _("Network browser"):
			self.session.open(NetworkBrowser, None, plugin_path_networkbrowser)
		#elif selected == _("Device manager"):
		#	self.session.open(HddMount)
######## Select Media Menu ##############################
		elif selected == _("Picture player"):
			from Plugins.Extensions.PicturePlayer.ui import Pic_Setup
			self.session.open(Pic_Setup)
		elif selected == _("Media player"):
			from Plugins.Extensions.MediaPlayer.settings import MediaPlayerSettings
			self.session.open(MediaPlayerSettings, self)
######## Select AV Setup Menu ##############################
		elif selected == _("AV settings"):
			self.session.open(VideoSetup)
		elif selected == _("Audio sync"):
			self.session.open(AC3LipSyncSetup, plugin_path_audiosync)
		elif selected == _("VideoEnhancement"):
			self.session.open(VideoEnhancementSetup)
		elif selected == _("OSD position"):
			from Screens.UserInterfacePositioner import UserInterfacePositioner
			self.session.open(UserInterfacePositioner)
		elif selected == _("OSD 3D setup"):
			from Screens.UserInterfacePositioner import OSD3DSetupScreen
			self.session.open(OSD3DSetupScreen)
######## Select TUNER Setup Menu ##############################
		elif selected == _("Tuner setup"):
			self.openSetup("tunersetup")
		elif selected == _("Location scan"):
			from Screens.IniTerrestrialLocation import IniTerrestrialLocation
			self.session.open(IniTerrestrialLocation)
		elif selected == _("Remote IP channels"):
			self.session.open(RemoteTunerScanner)
		elif selected == _("Tuner configuration"):
			self.session.open(NimSelection)
		elif HAVE_POSITIONERSETUP and selected == _("Positioner setup"):
			self.PositionerMain()
		elif selected == _("Automatic scan"):
			self.session.open(ScanSimple)
		elif selected == _("Manual scan"):
			self.session.open(ScanSetup)
		elif selected == _("Blind scan"):
			self.session.open(Blindscan)
		elif HAVE_SATFINDER and selected == _("Sat finder"):
			self.SatfinderMain()
		elif HAVE_LCN_SCANNER and selected == _("LCN renumber"):
			self.session.open(LCNScannerPlugin)
######## Select Software Manager Menu ##############################
		elif selected == _("Update now"):
			self.session.open(UpdatePlugin)
		elif selected == _("Update settings"):
			self.openSetup("softwareupdate")
		elif selected == _("Create backup"):
			self.session.openWithCallback(self.backupDone, BackupScreen, runBackup=True)
		elif selected == _("Restore backup"):
			self.backuppath = getBackupPath()
			if not path.isdir(self.backuppath):
				self.backuppath = getBackupPath()
			self.backupfile = getBackupFilename()
			self.fullbackupfilename = self.backuppath + "/" + self.backupfile
			if os_path.exists(self.fullbackupfilename):
				self.session.openWithCallback(
					self.startRestore, MessageBox,
					_("Are you sure you want to restore your %s %s backup?\nYour %s %s will reboot after the restore") %
					(getMachineBrand(), getMachineName(), getMachineBrand(), getMachineName()))
			else:
				self.session.open(MessageBox, _("Sorry no backups found!"), MessageBox.TYPE_INFO, timeout=10)
		elif selected == _("Backup settings"):
			self.session.openWithCallback(self.backupfiles_choosen, BackupSelection)
		#elif selected == _("Software Manager Setup"):
		#	self.session.open(SoftwareManagerSetup)
######## Select PluginDownloadBrowser Menu ##############################
		elif selected == _("Plugin browser"):
			self.session.open(PluginBrowser)
		elif selected == _("Download plugins"):
			self.session.open(PluginDownloadBrowser, 0)
		elif selected == _("Remove plugins"):
			self.session.open(PluginDownloadBrowser, 1)
		elif selected == _("Package installer"):
			try:
				from Plugins.Extensions.MediaScanner.plugin import main
				main(self.session)
			except:
				self.session.open(MessageBox, _("Sorry MediaScanner is not installed!"), MessageBox.TYPE_INFO, timeout=10)
######## Select Harddisk Menu ############################################
		elif selected == _("Hard disk setup"):
			self.openSetup("harddisk")
		elif selected == _("Format hard disk"):
			self.session.open(HarddiskSelection)
		elif selected == _("File system check"):
			self.session.open(HarddiskFsckSelection)
		elif selected == _("Convert ext3 to ext4"):
			self.session.open(HarddiskConvertExt4Selection)
Esempio n. 7
0
	def ok(self):
		menu = self['Mlist'].l.getCurrentSelection()[0][2]
		print '[OPD_panel] MenuItem: ' + menu
		if menu == 'services':
			self.services()
		elif menu == 'Pluginbrowser':
			self.session.open(PluginBrowser)
		elif menu == 'Infos':
			self.Infos()
		elif menu == 'Service_Team':
			self.session.open(Info, 'Service_Team')
		elif menu == 'Info':
			self.session.open(Info, 'SystemInfo')
		elif menu == 'ImageVersion':
			self.session.open(Info, 'ImageVersion')
		elif menu == 'FreeSpace':
			self.session.open(Info, 'FreeSpace')
		elif menu == 'Network':
			self.session.open(Info, 'Network')
		elif menu == 'Mounts':
			self.session.open(Info, 'Mounts')
		elif menu == 'Kernel':
			self.session.open(Info, 'Kernel')
		elif menu == 'Ram':
			self.session.open(Info, 'Free')
		elif menu == 'Cpu':
			self.session.open(Info, 'Cpu')
		elif menu == 'Top':
			self.session.open(Info, 'Top')
		elif menu == 'MemInfo':
			self.session.open(Info, 'MemInfo')
		elif menu == 'Module':
			self.session.open(Info, 'Module')
		elif menu == 'Mtd':
			self.session.open(Info, 'Mtd')
		elif menu == 'Partitions':
			self.session.open(Info, 'Partitions')
		elif menu == 'Swap':
			self.session.open(Info, 'Swap')
		elif menu == 'SystemInfo':
			self.System()
		elif menu == 'CronManager':
			self.session.open(CronManager)
		elif menu == 'Infobar_Setup':
			from OPENDROID.GreenPanel import InfoBarSetup
			self.session.open(InfoBarSetup)
		elif menu == 'Decoding_Setup':
			from OPENDROID.GreenPanel import DecodingSetup
			self.session.open(DecodingSetup)
		elif menu == 'JobManager':
			self.session.open(ScriptRunner)
		elif menu == 'software-manager':
			self.Software_Manager()
		elif menu == 'software-update':
			self.session.open(SoftwarePanel)
		elif menu == 'backup-settings':
			self.session.openWithCallback(self.backupDone, BackupScreen, runBackup=True)
		elif menu == 'restore-settings':
			self.backuppath = getBackupPath()
			self.backupfile = getBackupFilename()
			self.fullbackupfilename = self.backuppath + '/' + self.backupfile
			if os_path.exists(self.fullbackupfilename):
				self.session.openWithCallback(self.startRestore, MessageBox, _('Are you sure you want to restore your STB backup?\nSTB will restart after the restore'))
			else:
				self.session.open(MessageBox, _('Sorry no backups found!'), MessageBox.TYPE_INFO, timeout=10)
		elif menu == 'backup-files':
			self.session.openWithCallback(self.backupfiles_choosen, BackupSelection)
		elif menu == 'MultiQuickButton':
			self.session.open(MultiQuickButton)
		elif menu == 'MountManager':
			self.session.open(DeviceManager)
		elif menu == 'OscamSmartcard':
			self.session.open(OscamSmartcard)
		elif menu == 'SwapManager':
			self.session.open(Swap)
		elif menu == 'RedPanel':
			self.session.open(RedPanel)
		elif menu == 'Yellow-Key-Action':
			self.session.open(YellowPanel)
		elif menu == 'LogManager':
			self.session.open(LogManager)
		elif menu == 'ImageFlash':
			self.session.open(FlashOnline)
		elif menu == 'Samba':
			self.session.open(NetworkSamba)
Esempio n. 8
0
 def ok(self):
     #// Menu Selection
     #		menu = self["Mlist"].getCurrent()
     global INFOCONF
     menu = self['Mlist'].l.getCurrentSelection()[0][2]
     print '[INFO-Panel] MenuItem: ' + menu
     if menu == "Extras":
         self.Extras()
     elif menu == "Pluginbrowser":
         self.session.open(PluginBrowser)
     elif menu == "Infos":
         self.Infos()
     elif menu == "InfoPanel":
         self.session.open(Info, "InfoPanel")
     elif menu == "Info":
         self.session.open(Info, "Sytem_info")
     elif menu == "FreeSpace":
         self.session.open(Info, "FreeSpace")
     elif menu == "Network":
         self.session.open(Info, "Network")
     elif menu == "Mounts":
         self.session.open(Info, "Mounts")
     elif menu == "Kernel":
         self.session.open(Info, "Kernel")
     elif menu == "Ram":
         self.session.open(Info, "Free")
     elif menu == "Cpu":
         self.session.open(Info, "Cpu")
     elif menu == "Top":
         self.session.open(Info, "Top")
     elif menu == "MemInfo":
         self.session.open(Info, "MemInfo")
     elif menu == "Module":
         self.session.open(Info, "Module")
     elif menu == "Mtd":
         self.session.open(Info, "Mtd")
     elif menu == "Partitions":
         self.session.open(Info, "Partitions")
     elif menu == "Swap":
         self.session.open(Info, "Swap")
     elif menu == "System_Info":
         self.System()
     elif menu == "JobManager":
         self.session.open(ScriptRunner)
     elif menu == "SoftcamManager":
         self.session.open(NFRCamManager)
     elif menu == "image-manager":
         self.Image_Manager()
     elif menu == "remote-manager":
         self.Remote_Manager()
     elif menu == "plugin-manager":
         self.Plugin_Manager()
     elif menu == "software-update":
         self.session.open(SoftwarePanel)
     elif menu == "backup-image":
         if DFLASH == True:
             self.session.open(dFlash)
         else:
             self.session.open(ImageBackup)
     elif menu == "backup-settings":
         self.session.openWithCallback(self.backupDone,
                                       BackupScreen,
                                       runBackup=True)
     elif menu == "restore-settings":
         self.backuppath = getBackupPath()
         self.backupfile = getBackupFilename()
         self.fullbackupfilename = self.backuppath + "/" + self.backupfile
         if os_path.exists(self.fullbackupfilename):
             self.session.openWithCallback(
                 self.startRestore, MessageBox,
                 _("Are you sure you want to restore your STB backup?\nSTB will restart after the restore"
                   ))
         else:
             self.session.open(MessageBox,
                               _("Sorry no backups found!"),
                               MessageBox.TYPE_INFO,
                               timeout=10)
     elif menu == "backup-files":
         self.session.openWithCallback(self.backupfiles_choosen,
                                       BackupSelection)
     elif menu == "flash-local":
         self.session.open(FlashOnline)
     elif menu == "MultiQuickButton":
         self.session.open(MultiQuickButton)
     elif menu == "MountManager":
         self.session.open(HddSetup)
     elif menu == "SwapManager":
         self.session.open(SwapOverviewScreen)
     elif menu == "Red-Key-Action":
         self.session.open(RedPanel)
     elif menu == "Blue-Key-Action":
         self.session.open(BluePanel)
     elif menu == "Multi-Key-Action":
         self.session.open(HotkeySetup)
     elif menu == "KeymapSel":
         self.session.open(KeymapSel)
     elif menu == "QuickMenu":
         self.session.open(QuickMenu)
     elif menu == "LogManager":
         self.session.open(LogManager)
     elif menu == "PluginInstallwizard":
         self.session.open(PluginInstall)
     elif menu == "PluginDeinstallwizard":
         self.session.open(PluginDeinstall)
     else:
         pass
Esempio n. 9
0
	def okSubList(self):
		item = self['sublist'].getCurrent()
		if item[0] == _('Network Wizard'):
			self.session.open(NetworkWizard)
		elif item[0] == _('Network Adapter Selection'):
			self.session.open(NetworkAdapterSelection)
		elif item[0] == _('Network Interface'):
			self.session.open(AdapterSetup, self.activeInterface)
		elif item[0] == _('Network Restart'):
			self.session.open(RestartNetwork)
		elif item[0] == _('Network Services'):
			self.Qnetworkservices()
			self['sublist'].moveToIndex(0)
		elif item[0] == _('Samba'):
			self.session.open(NetworkSamba)
		elif item[0] == _('NFS'):
			self.session.open(NetworkNfs)
		elif item[0] == _('FTP'):
			self.session.open(NetworkFtp)
		elif item[0] == _('AFP'):
			self.session.open(NetworkAfp)
		elif item[0] == _('OpenVPN'):
			self.session.open(NetworkOpenvpn)
		elif item[0] == _('MiniDLNA'):
			self.session.open(NetworkMiniDLNA)
		elif item[0] == _('Inadyn'):
			self.session.open(NetworkInadyn)
		elif item[0] == _('SABnzbd'):
			self.session.open(NetworkSABnzbd)
		elif item[0] == _('uShare'):
			self.session.open(NetworkuShare)
		elif item[0] == _('Telnet'):
			self.session.open(NetworkTelnet)
		elif item[0] == _('Customize'):
			self.openSetup('usage')
		elif item[0] == _('Display Settings'):
			self.openSetup('lcd')
		elif item[0] == _('LCD Skin Setup'):
			self.session.open(LcdSkinSelector)
		elif item[0] == _('Skin Setup'):
			self.session.open(SkinSelector)
		elif item[0] == _('User interface'):
			self.openSetup('userinterface')
		elif item[0] == _('Recording paths'):
			self.session.open(RecordPathsSettings)
		elif item[0] == _('Recording settings'):
			self.openSetup('recording')
		elif item[0] == _('EPG settings'):
			self.openSetup('epgsettings')
		elif item[0] == _('Language'):
			self.session.open(LanguageSelection)
		elif item[0] == _('Network Mount Manager'):
			self.session.open(AutoMountManager, None, plugin_path_networkbrowser)
		elif item[0] == _('Mount again'):
			AutoMount()
			self.session.open(MessageBox, _('Network Shares are Mounted again.'), MessageBox.TYPE_INFO, timeout=3)
		elif item[0] == _('Network Browser'):
			self.session.open(NetworkBrowser, None, plugin_path_networkbrowser)
		elif item[0] == _('Device Mount Manager'):
			self.session.open(DevicesMountPanel)
		elif item[0] == _('Softcam Panel'):
			self.session.open(SoftcamPanel)
		elif item[0] == _('Softcam-Panel Setup'):
			self.session.open(ShowSoftcamPanelExtensions)
		elif item[0] == _('Download Softcams'):
			self.session.open(ShowSoftcamPackages)
		elif item[0] == _('Cam Setup'):
			self.session.open(ScNewSelection)
		elif item[0] == _('Ecm Info Sc'):
			self.session.open(ScSetupScreen)
		elif item[0] == _('Softcam-Setup'):
			self.session.open(SoftcamSetup)
		elif item[0] == _('Ecm Info'):
			self.session.open(EcmInfoConfigMenu)
		elif item[0] == _("CCcam Info"):
			self.session.open(CCcamInfoMain)
		elif item[0] == _("OScam Info"):
			self.session.open(OscamInfoMenu)
		elif item[0] == _('AV Settings'):
			videoSetupMain(self.session)
		elif item[0] == _('Auto Resolution'):
			autoresSetup(self.session)
		elif item[0] == _('Auto Language'):
			self.openSetup('autolanguagesetup')
		elif item[0] == _('Automatic Volume Adjustment'):
			self.session.open(AutomaticVolumeAdjustmentConfigScreen)
		elif item[0] == _('Audio Sync'):
			self.session.open(AC3LipSyncSetup, plugin_path_audiosync)
		elif item[0] == _('Testscreens'):
			self.session.open(VideoFinetune)
		elif item[0] == _('VideoEnhancement'):
			self.session.open(VideoEnhancementSetup)
		elif item[0] == _('Hdmi CEC'):
			if HDMICEC == True:
				self.session.open(HdmiCECSetupScreen)
			else:
				self.session.open(MessageBox, _('Sorry,\nHdmi CEC is not available for this box at the moment.'), MessageBox.TYPE_INFO, timeout=10)
		elif item[0] == _('Tuner Configuration'):
			self.session.open(NimSelection)
		elif item[0] == _('Positioner Setup'):
			self.PositionerMain()
		elif item[0] == _('Sundtek Control Center'):
			self.session.open(SundtekControlCenter)
		elif item[0] == _('Automatic Scan'):
			self.session.open(ScanSimple)
		elif item[0] == _('Manual Scan'):
			self.session.open(ScanSetup)
		elif item[0] == _('Fallback remote receiver setup'):
			self.session.open(SetupFallbacktuner)
		elif item[0] == _('Fast Scan'):
			FastScanMain(self.session)
		elif item[0] == _('Blind Scan'):
			BlindscanMain(self.session)
		elif item[0] == _('Cable Scan'):
			CableScanMain(self.session)
		elif item[0] == _('MIS/PLS LCN Scan'):
			MisPlsLcnScanMain(self.session)
		elif item[0] == _('Terrestrial Scan'):
			TerrestrialScanMain(self.session)
		elif item[0] == _('Sat Finder'):
			self.SatfinderMain()
		elif item[0] == _('Software Update'):
			self.session.open(SoftwarePanel)
		elif item[0] == _('Flash Online'):
			self.session.open(FlashOnline)
		elif item[0] == _('Complete Backup'):
			if DFLASH == True:
				self.session.open(dFlash)
			else:
				self.session.open(ImageBackup)
		elif item[0] == _('Backup Settings'):
			self.session.openWithCallback(self.backupDone, BackupScreen, runBackup=True)
		elif item[0] == _('Restore Settings'):
			self.backuppath = getBackupPath()
			if not path.isdir(self.backuppath):
				self.backuppath = getOldBackupPath()
			self.backupfile = getBackupFilename()
			self.fullbackupfilename = self.backuppath + '/' + self.backupfile
			if os.path.exists(self.fullbackupfilename):
				self.session.openWithCallback(self.startRestore, MessageBox, _('Are you sure you want to restore your %s %s backup?\nSTB will restart after the restore') % (getMachineBrand(), getMachineName()))
			else:
				self.session.open(MessageBox, _('Sorry no backups found!'), MessageBox.TYPE_INFO, timeout=10)
		elif item[0] == _('Select Backup files'):
			self.session.openWithCallback(self.backupfiles_choosen, BackupSelection)
		elif item[0] == _('Software Manager Setup'):
			self.session.open(SoftwareManagerSetup)
		elif item[0] == _('Plugin Browser'):
			self.session.open(PluginBrowser)
		elif item[0] == _('Download Plugins'):
			self.session.open(PluginDownloadBrowser, 0)
		elif item[0] == _('Remove Plugins'):
			self.session.open(PluginDownloadBrowser, 1)
		elif item[0] == _('Plugin Filter'):
			self.session.open(PluginFilter)
		elif item[0] == _('IPK Installer'):
			try:
				from Plugins.Extensions.MediaScanner.plugin import main
				main(self.session)
			except:
				self.session.open(MessageBox, _('Sorry MediaScanner is not installed!'), MessageBox.TYPE_INFO, timeout=10)
		elif item[0] == _('IPK Uninstaller'):
			try:
				self.session.open(Ipkuninstall)
			except:
				self.session.open(MessageBox, _('Sorry IPK-uninstaller is not installed!'), MessageBox.TYPE_INFO, timeout=10)
		elif item[0] == _('Harddisk Setup'):
			self.openSetup('harddisk')
		elif item[0] == _('Initialization'):
			self.session.open(HarddiskSelection)
		elif item[0] == _('Filesystem Check'):
			self.session.open(HarddiskFsckSelection)
		return
Esempio n. 10
0
	def okpress(self):
		#// Menu Selection

		global INFOCONF
#		menu = self['list'].l.getCurrentSelection()[0][2]
                current = self['list'].getCurrent()
                if current:
                        name = current[0]
                        menu = current[1]
		if menu == "BackupFlashManager":
			self.BackupFlashManager()
		elif menu == "BackupImage":
			self.session.open(ImageBackup)
		elif menu == "FlashImage":
			self.session.open(FlashOnline)
		elif menu == "BackupSettings":
			self.session.openWithCallback(self.backupDone,BackupScreen, runBackup = True)
		elif menu == "RestoreSettings":
			self.backuppath = getBackupPath()
			self.backupfile = getBackupFilename()
			self.fullbackupfilename = self.backuppath + "/" + self.backupfile
			if os_path.exists(self.fullbackupfilename):
				self.session.openWithCallback(self.startRestore, MessageBox, _("Are you sure you want to restore your STB backup?\nSTB will restart after the restore"))
			else:
				self.session.open(MessageBox, _("Sorry no backups found!"), MessageBox.TYPE_INFO, timeout = 10)
		elif menu == "BackupFiles":
			self.session.openWithCallback(self.backupfiles_choosen,BackupSelection)
		elif menu == "BackupLocation":
					parts = [ (r.description, r.mountpoint, self.session) for r in harddiskmanager.getMountedPartitions(onlyhotplug = False)]
					for x in parts:
						if not access(x[1], F_OK|R_OK|W_OK) or x[1] == '/':
							parts.remove(x)
					if len(parts):
						self.session.openWithCallback(self.backuplocation_choosen, ChoiceBox, title = _("Please select medium to use as backup location"), list = parts)
								
		elif menu == "CamSetup":
			self.session.open(Sc.ScNewSelection)
		elif menu == "AdvancedRestore":
		        self.session.open(RestoreMenu, self.skin)	
                elif menu == "SkinSetup":
			self.session.open(SkinSetup)
		elif menu == "ImageTools":
			self.Plugins()
		elif menu == "Pluginbrowser":
			self.session.open(PluginBrowser)
		elif menu == "Infos":
			self.Infos()
		elif menu == "InfoPanel":
			self.session.open(Info, "InfoPanel")
		elif menu == "Info":
			self.session.open(Info, "Sytem_info")
		elif menu == "Default":
			self.session.open(Info, "Default")
		elif menu == "FreeSpace":
			self.session.open(Info, "FreeSpace")
		elif menu == "Network":
			self.session.open(Info, "Network")
		elif menu == "Mounts":
			self.session.open(Info, "Mounts")
		elif menu == "Kernel":
			self.session.open(Info, "Kernel")
		elif menu == "Ram":
			self.session.open(Info, "Free")
		elif menu == "Cpu":
			self.session.open(Info, "Cpu")
		elif menu == "Top":
			self.session.open(Info, "Top")
		elif menu == "MemInfo":
			self.session.open(Info, "MemInfo")
		elif menu == "Module":
			self.session.open(Info, "Module")
		elif menu == "Mtd":
			self.session.open(Info, "Mtd")
		elif menu == "Partitions":
			self.session.open(Info, "Partitions")
		elif menu == "Swap":
			self.session.open(Info, "Swap")
		elif menu == "System_Info":
			self.System()
		elif menu == "CronManager":
			self.session.open(CronManager)	
		elif menu == "JobManager":
			self.session.open(ScriptRunner)
		elif menu == "SoftcamPanel":
			self.session.open(SoftcamPanel)
		elif menu == "SoftwareManager":
			self.Software_Manager()
		elif menu == "ImageUpdate":
			self.session.open(SoftwarePanel)
		elif menu == "MultiQuickButton":
			sz_w = getDesktop(0).size().width()
			from Components.PluginComponent import plugins
			plugin = _('MultiQuickbutton')
			for p in plugins.getPlugins(where=[PluginDescriptor.WHERE_PLUGINMENU]):
				if 'MultiQuickbutton' == str(p.name):
					plugin = p
			if plugin is not None and sz_w == 1280:
				plugin(session=self.session)
			else:
				self.session.open(MessageBox, _('Sorry:\nET-MultiQuickButton support only HD skins with 1280x720px'), MessageBox.TYPE_INFO, timeout=10)
		elif menu == "PacketManager":
			self.session.open(PacketManager, self.skin)
		elif menu == "DVB-NTP-Time":
			from Plugins.Extensions.ExtrasPanel.XTDVBNTPTime import *
                        self.session.open(XTDVBNTPTime)
		elif menu == 'IPK-installManager':	
			self.session.open(AddonsFileBrowser)
		elif menu == 'IPK-uninstaller':	
			self.session.open(Ipkuninstall)	
		elif menu == "MountManager":
			self.session.open(HddMount)
		elif menu == "SundtekControlCenter":
			self.session.open(SundtekControlCenter)
		elif menu == "SwapManager":
			self.session.open(Swap)
		elif menu == "RedPanel":
			self.session.open(RedPanel)
		elif menu == "Yellow-Key-Action":
			self.session.open(YellowPanel)
		elif menu == "Softcam-Panel Setup":
			self.session.open(ShowSoftcamPanelExtensions)
		elif menu == "KeymapSel":
			self.session.open(KeymapSel)
		else:
			pass
Esempio n. 11
0
	def okpress(self):
		current = self['list'].getCurrent()
		if current:
			name = current[0]
			menu = current[1]
		if menu == 'BackupFlashManager':
			self.BackupFlashManager()
		elif menu == 'BackupImage':
			self.session.open(ImageBackup)
		elif menu == 'FlashImage':
			self.session.open(FlashOnline)
		elif menu == 'BackupSettings':
			self.session.openWithCallback(self.backupDone, BackupScreen, runBackup=True)
		elif menu == 'RestoreSettings':
			self.backuppath = getBackupPath()
			self.backupfile = getBackupFilename()
			self.fullbackupfilename = self.backuppath + '/' + self.backupfile
			if os_path.exists(self.fullbackupfilename):
				self.session.openWithCallback(self.startRestore, MessageBox, _('Are you sure you want to restore your STB backup?\nSTB will restart after the restore'), default=False)
			else:
				self.session.open(MessageBox, _('Sorry no backups found!'), MessageBox.TYPE_INFO, timeout=10)
		elif menu == 'BackupFiles':
			self.session.openWithCallback(self.backupfiles_choosen, BackupSelection)
		elif menu == 'BackupLocation':
			parts = [ (r.description, r.mountpoint, self.session) for r in harddiskmanager.getMountedPartitions(onlyhotplug=False) ]
			for x in parts:
				if not access(x[1], F_OK | R_OK | W_OK) or x[1] == '/':
					parts.remove(x)

			if len(parts):
				self.session.openWithCallback(self.backuplocation_choosen, ChoiceBox, title=_('Please select medium to use as backup location'), list=parts)
		elif menu == 'CamSetup':
			self.session.open(Sc.ScNewSelection)
		elif menu == 'AdvancedRestore':
			self.session.open(RestoreMenu, self.skin)
		elif menu == 'SkinSetup':
			self.session.open(SkinSetup)
		elif menu == 'ImageTools':
			self.Plugins()
		elif menu == 'Pluginbrowser':
			self.session.open(PluginBrowser)
		elif menu == 'Infos':
			self.Infos()
		elif menu == 'InfoPanel':
			self.session.open(Info, 'InfoPanel')
		elif menu == 'Info':
			self.session.open(Info, 'Sytem_info')
		elif menu == 'Default':
			self.session.open(Info, 'Default')
		elif menu == 'FreeSpace':
			self.session.open(Info, 'FreeSpace')
		elif menu == 'Network':
			self.session.open(Info, 'Network')
		elif menu == 'Mounts':
			self.session.open(Info, 'Mounts')
		elif menu == 'Kernel':
			self.session.open(Info, 'Kernel')
		elif menu == 'Ram':
			self.session.open(Info, 'Free')
		elif menu == 'Cpu':
			self.session.open(Info, 'Cpu')
		elif menu == 'Top':
			self.session.open(Info, 'Top')
		elif menu == 'MemInfo':
			self.session.open(Info, 'MemInfo')
		elif menu == 'Module':
			self.session.open(Info, 'Module')
		elif menu == 'Mtd':
			self.session.open(Info, 'Mtd')
		elif menu == 'Partitions':
			self.session.open(Info, 'Partitions')
		elif menu == 'Swap':
			self.session.open(Info, 'Swap')
		elif menu == 'System_Info':
			self.System()
		elif menu == 'CronManager':
			self.session.open(CronManager)
		elif menu == 'JobManager':
			self.session.open(ScriptRunner)
		elif menu == 'SoftcamPanel':
			self.session.open(SoftcamPanel)
		elif menu == 'SoftwareManager':
			self.Software_Manager()
		elif menu == 'ImageUpdate':
			self.session.open(SoftwarePanel)
		elif menu == 'MultiQuickButton':
			self.session.open(MultiQuickButton)
		elif menu == 'PacketManager':
			self.session.open(PacketManager, self.skin)
		elif menu == 'DVB-NTP-Time':
			from Plugins.Extensions.ExtrasPanel.XTDVBNTPTime import *
			self.session.open(XTDVBNTPTime)
		elif menu == 'IPK-installManager':
			self.session.open(AddonsFileBrowser)
		elif menu == 'IPK-uninstaller':
			self.session.open(Ipkuninstall)
		elif menu == 'MountManager':
			self.session.open(DevicesMountPanel)
		elif menu == 'SundtekControlCenter':
			self.session.open(SundtekControlCenter)
		elif menu == 'SwapManager':
			self.session.open(Swap)
		elif menu == 'RedPanel':
			self.session.open(RedPanel)
		elif menu == 'Yellow-Key-Action':
			self.session.open(YellowPanel)
		elif menu == 'Softcam-Panel Setup':
			self.session.open(ShowSoftcamPanelExtensions)
		elif menu == 'KeymapSel':
			self.session.open(KeymapSel)
		return
Esempio n. 12
0
	def ok(self):
		#// Menu Selection
#		menu = self["Mlist"].getCurrent()
		global INFOCONF
		menu = self['Mlist'].l.getCurrentSelection()[0][2]
		print '[INFO-Panel] MenuItem: ' + menu
		if menu == "Extras":
			self.Extras()
		elif menu == "Pluginbrowser":
			self.session.open(PluginBrowser)
		elif menu == "Infos":
			self.Infos()
		elif menu == "InfoPanel":
			self.session.open(Info, "InfoPanel")
		elif menu == "Info":
			self.session.open(Info, "Sytem_info")
		elif menu == "FreeSpace":
			self.session.open(Info, "FreeSpace")
		elif menu == "Network":
			self.session.open(Info, "Network")
		elif menu == "Mounts":
			self.session.open(Info, "Mounts")
		elif menu == "Kernel":
			self.session.open(Info, "Kernel")
		elif menu == "Ram":
			self.session.open(Info, "Free")
		elif menu == "Cpu":
			self.session.open(Info, "Cpu")
		elif menu == "Top":
			self.session.open(Info, "Top")
		elif menu == "MemInfo":
			self.session.open(Info, "MemInfo")
		elif menu == "Module":
			self.session.open(Info, "Module")
		elif menu == "Mtd":
			self.session.open(Info, "Mtd")
		elif menu == "Partitions":
			self.session.open(Info, "Partitions")
		elif menu == "Swap":
			self.session.open(Info, "Swap")
		elif menu == "DiskSpeed":
			self.session.open(Disk_Speed)
		elif menu == "m3u-convert":
			self.session.open(IPTV)			
		elif menu == "PasswordChange":
			self.session.open(NFRPasswdScreen)
		elif menu == "UserMainMenu":
		        plugin_path = None
			self.session.open(UserMainMenuConfig, plugin_path)                                                				
		elif menu == "System_Info":
			self.System()
		elif menu == "JobManager":
			self.session.open(ScriptRunner)
		elif menu == "SoftcamManager":
			self.session.open(NFRCamManager)
		elif menu == "image-manager":
			self.Image_Manager()
		elif menu == "remote-manager":
			self.Remote_Manager()
		elif menu == "plugin-manager":
			self.Plugin_Manager()
		elif menu == "software-update":
			self.session.open(SoftwarePanel)
		elif menu == "backup-image":
			if DFLASH == True:
				self.session.open(dFlash)
			else:
				self.session.open(ImageBackup)		
		elif menu == "backup-settings":
			self.session.openWithCallback(self.backupDone,BackupScreen, runBackup = True)
		elif menu == "restore-settings":
			self.backuppath = getBackupPath()
			self.backupfile = getBackupFilename()
			self.fullbackupfilename = self.backuppath + "/" + self.backupfile
			if os_path.exists(self.fullbackupfilename):
				self.session.openWithCallback(self.startRestore, MessageBox, _("Are you sure you want to restore your STB backup?\nSTB will restart after the restore"))
			else:
				self.session.open(MessageBox, _("Sorry no backups found!"), MessageBox.TYPE_INFO, timeout = 10)
		elif menu == "bootvideomanager":
			self.session.open(BootvideoSetupScreen)
		elif menu == "bootlogomanager":
			self.session.open(BootlogoSetupScreen)	
		elif menu == "radiologomanager":
			self.session.open(RadiologoSetupScreen) 
		elif menu == "spinnermanager":
			SpinnerSelector(self.session) 			
		elif menu == "backup-files":
			self.session.openWithCallback(self.backupfiles_choosen,BackupSelection)
		elif menu == "flash-local":
			self.session.open(FlashOnline)
		elif menu == "MultiQuickButton":
			self.session.open(MultiQuickButton)
		elif menu == "MountManager":
			self.session.open(HddSetup)
		elif menu == "SwapManager":
			self.session.open(SwapOverviewScreen)
		elif menu == "Red-Key-Action":
			self.session.open(RedPanel)
		elif menu == "Blue-Key-Action":
			self.session.open(BluePanel)			
		elif menu == "Multi-Key-Action":
			self.session.open(HotkeySetup)			
		elif menu == "KeymapSel":
			self.session.open(KeymapSel)
		elif menu == "QuickMenu":
			self.session.open(QuickMenu)
		elif menu == "LogManager":
			self.session.open(LogManager)
		elif menu == "PluginInstallwizard":
			self.session.open(PluginInstall)
		elif menu == "PluginDeinstallwizard":
			self.session.open(PluginDeinstall)
		elif menu == "OpenNFRWizard":
			self.session.open(OpenNFRWizardSetup)
		elif menu == "SkinSetup":
			self.session.open(NfrHD_Config)
		elif menu == "ImageUpdateCheck": 
			self.session.open(OpenNFRWizardupdatecheck)                        	
		elif menu == "PluginReLoad":
                        if fileExists("/usr/lib/enigma2/python/Plugins/Extensions/Infopanel/PluginReLoad.pyo") or fileExists("/usr/lib/enigma2/python/Plugins/Extensions/Infopanel/PluginReLoad.py"):    
                            from Plugins.Extensions.Infopanel.PluginReLoad import PluginReLoadConfig
                            self.session.open(PluginReLoadConfig)      				
		else:
			pass
Esempio n. 13
0
	def okpress(self):
		#// Menu Selection

		global INFOCONF
#		menu = self['list'].l.getCurrentSelection()[0][2]
                current = self['list'].getCurrent()
                if current:
                        name = current[0]
                        menu = current[1]
		if menu == "BackupFlashManager":
			self.BackupFlashManager()
		elif menu == "BackupImage":
			self.session.open(ImageBackup)
		elif menu == "FlashImage":
			self.session.open(FlashOnline)
		elif menu == "BackupSettings":
			self.session.openWithCallback(self.backupDone,BackupScreen, runBackup = True)
		elif menu == "RestoreSettings":
			self.backuppath = getBackupPath()
			self.backupfile = getBackupFilename()
			self.fullbackupfilename = self.backuppath + "/" + self.backupfile
			if os_path.exists(self.fullbackupfilename):
				self.session.openWithCallback(self.startRestore, MessageBox, _("Are you sure you want to restore your STB backup?\nSTB will restart after the restore"), default = False)
			else:
				self.session.open(MessageBox, _("Sorry no backups found!"), MessageBox.TYPE_INFO, timeout = 10)
		elif menu == "BackupFiles":
			self.session.openWithCallback(self.backupfiles_choosen,BackupSelection)
		elif menu == "BackupLocation":
					parts = [ (r.description, r.mountpoint, self.session) for r in harddiskmanager.getMountedPartitions(onlyhotplug = False)]
					for x in parts:
						if not access(x[1], F_OK|R_OK|W_OK) or x[1] == '/':
							parts.remove(x)
					if len(parts):
						self.session.openWithCallback(self.backuplocation_choosen, ChoiceBox, title = _("Please select medium to use as backup location"), list = parts)
								
		elif menu == "CamSetup":
			self.session.open(Sc.ScNewSelection)
		elif menu == "AdvancedRestore":
		        self.session.open(RestoreMenu, self.skin)	
                elif menu == "SkinSetup":
			self.session.open(SkinSetup)
		elif menu == "ImageTools":
			self.Plugins()
		elif menu == "Pluginbrowser":
			self.session.open(PluginBrowser)
		elif menu == "Infos":
			self.Infos()
		elif menu == "InfoPanel":
			self.session.open(Info, "InfoPanel")
		elif menu == "Info":
			self.session.open(Info, "Sytem_info")
		elif menu == "Default":
			self.session.open(Info, "Default")
		elif menu == "FreeSpace":
			self.session.open(Info, "FreeSpace")
		elif menu == "Network":
			self.session.open(Info, "Network")
		elif menu == "Mounts":
			self.session.open(Info, "Mounts")
		elif menu == "Kernel":
			self.session.open(Info, "Kernel")
		elif menu == "Ram":
			self.session.open(Info, "Free")
		elif menu == "Cpu":
			self.session.open(Info, "Cpu")
		elif menu == "Top":
			self.session.open(Info, "Top")
		elif menu == "MemInfo":
			self.session.open(Info, "MemInfo")
		elif menu == "Module":
			self.session.open(Info, "Module")
		elif menu == "Mtd":
			self.session.open(Info, "Mtd")
		elif menu == "Partitions":
			self.session.open(Info, "Partitions")
		elif menu == "Swap":
			self.session.open(Info, "Swap")
		elif menu == "System_Info":
			self.System()
		elif menu == "CronManager":
			self.session.open(CronManager)	
		elif menu == "JobManager":
			self.session.open(ScriptRunner)
		elif menu == "SoftcamPanel":
			self.session.open(SoftcamPanel)
		elif menu == "SoftwareManager":
			self.Software_Manager()
		elif menu == "ImageUpdate":
			self.session.open(SoftwarePanel)
		elif menu == "MultiQuickButton":
			sz_w = getDesktop(0).size().width()
			from Components.PluginComponent import plugins
			plugin = _('MultiQuickbutton')
			for p in plugins.getPlugins(where=[PluginDescriptor.WHERE_PLUGINMENU]):
				if 'MultiQuickbutton' == str(p.name):
					plugin = p
			if plugin is not None and sz_w == 1280:
				plugin(session=self.session)
			else:
				self.session.open(MessageBox, _('Sorry:\nET-MultiQuickButton support only HD skins with 1280x720px'), MessageBox.TYPE_INFO, timeout=10)
		elif menu == "PacketManager":
			self.session.open(PacketManager, self.skin)
		elif menu == "DVB-NTP-Time":
			from Plugins.Extensions.ExtrasPanel.XTDVBNTPTime import *
                        self.session.open(XTDVBNTPTime)
		elif menu == 'IPK-installManager':	
			self.session.open(AddonsFileBrowser)
		elif menu == 'IPK-uninstaller':	
			self.session.open(Ipkuninstall)	
		elif menu == "MountManager":
			self.session.open(DevicesMountPanel)
		elif menu == "SundtekControlCenter":
			self.session.open(SundtekControlCenter)
		elif menu == "SwapManager":
			self.session.open(Swap)
		elif menu == "RedPanel":
			self.session.open(RedPanel)
		elif menu == "Yellow-Key-Action":
			self.session.open(YellowPanel)
		elif menu == "Softcam-Panel Setup":
			self.session.open(ShowSoftcamPanelExtensions)
		elif menu == "KeymapSel":
			self.session.open(KeymapSel)
		else:
			pass
Esempio n. 14
0
    def okSubList(self):
        item = self['sublist'].getCurrent()
        if item[0] == _('Network Wizard'):
            self.session.open(NetworkWizard)
        elif item[0] == _('Network Adapter Selection'):
            self.session.open(NetworkAdapterSelection)
        elif item[0] == _('Network Interface'):
            self.session.open(AdapterSetup, self.activeInterface)
        elif item[0] == _('Network Restart'):
            self.session.open(RestartNetwork)
        elif item[0] == _('Network Services'):
            self.Qnetworkservices()
            self['sublist'].moveToIndex(0)
        elif item[0] == _('Samba'):
            self.session.open(NetworkSamba)
        elif item[0] == _('NFS'):
            self.session.open(NetworkNfs)
        elif item[0] == _('FTP'):
            self.session.open(NetworkFtp)
        elif item[0] == _('AFP'):
            self.session.open(NetworkAfp)
        elif item[0] == _('OpenVPN'):
            self.session.open(NetworkOpenvpn)
        elif item[0] == _('MiniDLNA'):
            self.session.open(NetworkMiniDLNA)
        elif item[0] == _('Inadyn'):
            self.session.open(NetworkInadyn)
        elif item[0] == _('SABnzbd'):
            self.session.open(NetworkSABnzbd)
        elif item[0] == _('uShare'):
            self.session.open(NetworkuShare)
        elif item[0] == _('Telnet'):
            self.session.open(NetworkTelnet)
        elif item[0] == _('Customise'):
            self.openSetup('usage')
        elif item[0] == _('Button Setup'):
            self.openSetup('remotesetup')
        elif item[0] == _('Display Settings'):
            self.openSetup('display')
        elif item[0] == _('LCD Skin Setup'):
            self.session.open(LcdSkinSelector)
        elif item[0] == _('Skin Setup'):
            self.session.open(SkinSelector)
        elif item[0] == _('OSD settings'):
            self.openSetup('userinterface')
        elif item[0] == _('Channel selection'):
            self.openSetup('channelselection')
        elif item[0] == _('Recording settings'):
            self.openSetup('recording')
        elif item[0] == _('EPG settings'):
            self.openSetup('epgsettings')
        elif item[0] == _('Mount Manager'):
            self.session.open(AutoMountManager, None,
                              plugin_path_networkbrowser)
        elif item[0] == _('Network Browser'):
            self.session.open(NetworkBrowser, None, plugin_path_networkbrowser)
        elif item[0] == _('Device Manager'):
            self.session.open(HddMount)
        elif item[0] == _('Softcam Panel'):
            self.session.open(SoftcamPanel)
        elif item[0] == _('Softcam-Panel Setup'):
            self.session.open(ShowSoftcamPanelExtensions)
        elif item[0] == _('Download Softcams'):
            self.session.open(ShowSoftcamPackages)
        elif item[0] == _('Video Settings'):
            self.session.open(VideoSetup)
        elif item[0] == _('Audio Settings'):
            self.session.open(AudioSetup)
        elif item[0] == _('Auto Language'):
            self.openSetup('autolanguagesetup')
        elif item[0] == _('Audio Sync'):
            self.session.open(AC3LipSyncSetup, plugin_path_audiosync)
        elif item[0] == _('VideoEnhancement'):
            self.session.open(VideoEnhancementSetup)
        elif item[0] == _('Tuner Configuration'):
            self.session.open(NimSelection)
        elif item[0] == _('Positioner Setup'):
            self.PositionerMain()
        elif item[0] == _('Automatic Scan'):
            self.session.open(ScanSimple)
        elif item[0] == _('Manual Scan'):
            self.session.open(ScanSetup)
        elif item[0] == _('Sat Finder'):
            self.SatfinderMain()
        elif item[0] == _('Software Update'):
            self.session.open(SoftwarePanel)
        elif item[0] == _('Flash Online'):
            self.session.open(FlashOnline)
        elif item[0] == _('Complete Backup'):
            if DFLASH == True:
                self.session.open(dFlash)
            elif DBACKUP == True:
                self.session.open(dBackup)
            else:
                self.session.open(ImageBackup)
        elif item[0] == _('Backup Settings'):
            self.session.openWithCallback(self.backupDone,
                                          BackupScreen,
                                          runBackup=True)
        elif item[0] == _('Restore Settings'):
            self.backuppath = getBackupPath()
            if not path.isdir(self.backuppath):
                self.backuppath = getOldBackupPath()
            self.backupfile = getBackupFilename()
            self.fullbackupfilename = self.backuppath + '/' + self.backupfile
            if os_path.exists(self.fullbackupfilename):
                self.session.openWithCallback(
                    self.startRestore,
                    MessageBox,
                    _('Are you sure you want to restore your %s %s backup?\nSTB will restart after the restore'
                      ) % (getMachineBrand(), getMachineName()),
                    default=False)
            else:
                self.session.open(MessageBox,
                                  _('Sorry no backups found!'),
                                  MessageBox.TYPE_INFO,
                                  timeout=10)
        elif item[0] == _('Show default backup files'):
            self.session.open(BackupSelection,
                              title=_('Default files/folders to backup'),
                              configBackupDirs=config.plugins.
                              configurationbackup.backupdirs_default,
                              readOnly=True)
        elif item[0] == _('Select additional backup files'):
            self.session.open(
                BackupSelection,
                title=_('Additional files/folders to backup'),
                configBackupDirs=config.plugins.configurationbackup.backupdirs,
                readOnly=False)
        elif item[0] == _('Select excluded backup files'):
            self.session.open(BackupSelection,
                              title=_('Files/folders to exclude from backup'),
                              configBackupDirs=config.plugins.
                              configurationbackup.backupdirs_exclude,
                              readOnly=False)
        elif item[0] == _('Software Manager Setup'):
            self.session.open(SoftwareManagerSetup)
        elif item[0] == _('Plugin Browser'):
            self.session.open(PluginBrowser)
        elif item[0] == _('Download Plugins'):
            self.session.open(PluginDownloadBrowser, 0)
        elif item[0] == _('Remove Plugins'):
            self.session.open(PluginDownloadBrowser, 1)
        elif item[0] == _('Plugin Filter'):
            self.session.open(PluginFilter)
        elif item[0] == _('IPK Installer'):
            try:
                from Plugins.Extensions.MediaScanner.plugin import main
                main(self.session)
            except:
                self.session.open(MessageBox,
                                  _('Sorry MediaScanner is not installed!'),
                                  MessageBox.TYPE_INFO,
                                  timeout=10)

        elif item[0] == _('Harddisk Setup'):
            self.openSetup('harddisk')
        elif item[0] == _('Initialization'):
            self.session.open(HarddiskSelection)
        elif item[0] == _('Filesystem Check'):
            self.session.open(HarddiskFsckSelection)
        elif item[0] == _('Convert ext3 to ext4'):
            self.session.open(HarddiskConvertExt4Selection)
        return
Esempio n. 15
0
	def okSubList(self):
		item = self["sublist"].getCurrent()

######## Select Network Menu ##############################
		if item[0] == _("Network Wizard"):
			self.session.open(NetworkWizard)
		elif item[0] == _("Network Adapter Selection"):
			self.session.open(NetworkAdapterSelection)
		elif item[0] == _("Network Interface"):
			self.session.open(AdapterSetup,self.activeInterface)
		elif item[0] == _("Network Restart"):
			self.session.open(RestartNetwork)
		elif item[0] == _("Network Services"):
			self.Qnetworkservices()
			self["sublist"].moveToIndex(0)
		elif item[0] == _("iperf Net_test"):
			self.session.open(Net_test)			
		elif item[0] == _("Samba"):
			self.session.open(NetworkSamba)
		elif item[0] == _("NFS"):
			self.session.open(NetworkNfs)
		elif item[0] == _("FTP"):
			self.session.open(NetworkFtp)
		elif item[0] == _("AFP"):
			self.session.open(NetworkAfp)
		elif item[0] == _("OpenVPN"):
			self.session.open(NetworkOpenvpn)
		elif item[0] == _("MiniDLNA"):
			self.session.open(NetworkMiniDLNA)
		elif item[0] == _("Inadyn"):
			self.session.open(NetworkInadyn)
		elif item[0] == _("SABnzbd"):
			self.session.open(NetworkSABnzbd)
		elif item[0] == _("uShare"):
			self.session.open(NetworkuShare)
		elif item[0] == _("Telnet"):
			self.session.open(NetworkTelnet)
		elif item[0] == _("Network Configs"):
			self.session.open(OpenNFRWizardSetup)			
######## Select System Setup Menu ##############################
		elif item[0] == _("Customise"):
			self.openSetup("usage")
		elif item[0] == _("Button Setup"):
			self.openSetup("remotesetup")
		elif item[0] == _("Display Settings"):
			self.openSetup("display")
		elif item[0] == _("LCD Skin Setup"):
			self.session.open(LcdSkinSelector)
		elif item[0] == _("OSD settings"):
			self.openSetup("userinterface")
		elif item[0] == _("Channel selection"):
			self.openSetup("channelselection")
		elif item[0] == _("Recording settings"):
			self.openSetup("recording")
		elif item[0] == _("EPG settings"):
			self.openSetup("epgsettings")
######## Select Mounts Menu ##############################
		elif item[0] == _("Mount Manager"):
			self.session.open(AutoMountManager, None, plugin_path_networkbrowser)
		elif item[0] == _("Network Browser"):
			self.session.open(NetworkBrowser, None, plugin_path_networkbrowser)
		elif item[0] == _("HDD Manager"):
			self.session.open(HddSetup)
		elif item[0] == _("HDD Fast Umount"):
			self.session.open(HddFastRemove)			
		elif item[0] == _("SWAP Manager"):
			self.session.open(SwapOverviewScreen)	
######## Select Softcam Menu ##############################
		elif item[0] == _("Softcam Panel"):
       			self.session.open(NFRCamManager)
       	        elif item[0] == _("Softcam Config Edit"):
			self.Qsoftcamedit()
			self["sublist"].moveToIndex(0)
######## Select OscamEdit Menu ##############################
		elif item[0] == _("Oscam Config Edit"):
			self.Qoscamedit()
			self["sublist"].moveToIndex(0)
######## Select CCcam Config Edit Menu ##############################
		elif item[0] == _("CCcam Config Edit"):
			self.QCCcamedit()
			self["sublist"].moveToIndex(0)			
######## Select Mgcamd Config Edit Menu ##############################
		elif item[0] == _("Mgcamd Config Edit"):
			self.QMgcamdedit()
			self["sublist"].moveToIndex(0)					
######## Select Camd3 Config Edit Menu ##############################
		elif item[0] == _("Camd3 Config Edit"):
			self.QCamd3edit()
			self["sublist"].moveToIndex(0)					
######## Select Gbox Config Edit Menu ##############################
		elif item[0] == _("Gbox Config Edit"):
			self.QGboxedit()
			self["sublist"].moveToIndex(0)					
######## Select Wicard Config Edit Menu ##############################
		elif item[0] == _("Wicard Config Edit"):
			self.QWicarddedit()
			self["sublist"].moveToIndex(0)
		elif item[0] == _("Oscam.server Edit"):
			self.session.open(vEditor, "/usr/keys/oscam.server")	
		elif item[0] == _("Oscam.user Edit"):
			self.session.open(vEditor, "/usr/keys/oscam.user")	
		elif item[0] == _("Oscam.conf Edit"):
			self.session.open(vEditor, "/usr/keys/oscam.conf")	
		elif item[0] == _("Oscam.dvbapi Edit"):
			self.session.open(vEditor, "/usr/keys/oscam.dvbapi")	
		elif item[0] == _("CCcam.cfg Edit"):
			self.session.open(vEditor, "/usr/keys/CCcam.cfg")	
		elif item[0] == _("mg.cfg Edit"):
			self.session.open(vEditor, "/usr/keys/mg_cfg")	
		elif item[0] == _("Mgcamd cccamd.list Edit"):
			self.session.open(vEditor, "/usr/keys/cccamd.list")	
		elif item[0] == _("Mgcamd newcamd.list Edit"):
			self.session.open(vEditor, "/usr/keys/newcamd.list")	
		elif item[0] == _("camd3.config Edit"):
			self.session.open(vEditor, "/usr/keys/camd3.config")	
		elif item[0] == _("camd3.users Edit"):
			self.session.open(vEditor, "/usr/keys/camd3.users")	
		elif item[0] == _("camd3.servers Edit"):
			self.session.open(vEditor, "/usr/keys/camd3.servers")	
		elif item[0] == _("gbox.cfg Edit"):
			self.session.open(vEditor, "/usr/keys/gbox_cfg")	
		elif item[0] == _("cwshare.cfg Edit"):
			self.session.open(vEditor, "/usr/keys/cwshare.cfg")	
		elif item[0] == _("wicardd.conf Edit"):
			self.session.open(vEditor, "/usr/keys/wicardd.conf")				
######## Select Screenshot Menu ##############################
		elif item[0] == _("OSD"):
                        self.Console = Console()
                        self.Console.ePopen("/usr/lib/enigma2/python/Plugins/Extensions/Infopanel/data/screenshot.sh o ExecuteOnce")
       		elif item[0] == _("VIDEO"):
       		        self.Console = Console()
                        self.Console.ePopen("/usr/lib/enigma2/python/Plugins/Extensions/Infopanel/data/screenshot.sh v ExecuteOnce")
       		elif item[0] == _("ALL"):
       		        self.Console = Console()
                        self.Console.ePopen("/usr/lib/enigma2/python/Plugins/Extensions/Infopanel/data/screenshot.sh ExecuteOnce")
                      			
######## Select AV Setup Menu ##############################
		elif item[0] == _("AV Settings"):
			self.session.open(VideoSetup)
		elif item[0] == _("Auto Language"):
			self.openSetup("autolanguagesetup")
		elif item[0] == _("Audio Sync"):
			self.session.open(AC3LipSyncSetup, plugin_path_audiosync)
		elif item[0] == _("VideoEnhancement"):
			self.session.open(VideoEnhancementSetup)
		elif item[0] == _("AutoResolution"):
			self.session.open(AutoResSetupMenu)
######## Select TUNER Setup Menu ##############################
		elif item[0] == _("Tuner Configuration"):
			self.session.open(NimSelection)
		elif item[0] == _("Positioner Setup"):
			self.PositionerMain()
		elif item[0] == _("Automatic Scan"):
			self.session.open(ScanSimple)
		elif item[0] == _("Manual Scan"):
			self.session.open(ScanSetup)
		elif item[0] == _("Sat Finder"):
			self.SatfinderMain()
		elif item[0] == _("Sat Loader"):
			self.session.open(Satloader)			
######## Select Software Manager Menu ##############################
		elif item[0] == _("Software Update"):
			#self.session.open(UpdatePlugin)
			self.session.open(SoftwarePanel)
		elif item[0] == _("Flash Local"):
			if not os.path.exists("/media/hdd"):
			        self.session.open(MessageBox, _("No /hdd found !!\nPlease make sure you have a HDD mounted.\n\nExit plugin."), type = MessageBox.TYPE_ERROR)
			        return False
		        if Freespace('/media/hdd') < 300000:
			        self.session.open(MessageBox, _("Not enough free space on /hdd !!\nYou need at least 300Mb free space.\n\nExit plugin."), type = MessageBox.TYPE_ERROR)
			        return False
         		if not os.path.exists(ofgwritePath):
			        self.session.open(MessageBox, _('ofgwrite not found !!\nPlease make sure you have ofgwrite installed in /usr/lib/enigma2/python/Plugins/Extensions/Infopanel/data/ofgwrite.\n\nExit plugin.'), type = MessageBox.TYPE_ERROR)
			        return False
             		
			else:
			   
                            if os.path.exists(dir_path):
                                 os.system('rm -rf ' + dir_path)
		            if not os.path.exists(imagePath):
                                 os.mkdir(imagePath)
                            if not os.path.exists(dir_path):
                                 os.mkdir(dir_path)
                                 self.session.open(doFlashImage)
                               			
		elif item[0] == _("Complete Backup"):
			if DFLASH == True:
				self.session.open(dFlash)
			else:
				self.session.open(ImageBackup)
		elif item[0] == _("Backup Settings"):
			self.session.openWithCallback(self.backupDone,BackupScreen, runBackup = True)
		elif item[0] == _("Restore Settings"):
			self.backuppath = getBackupPath()
			self.backupfile = getBackupFilename()
			self.fullbackupfilename = self.backuppath + "/" + self.backupfile
			if os_path.exists(self.fullbackupfilename):
				self.session.openWithCallback(self.startRestore, MessageBox, _("Are you sure you want to restore your %s %s backup?\nSTB will restart after the restore") % (getMachineBrand(), getMachineName()))
			else:
				self.session.open(MessageBox, _("Sorry no backups found!"), MessageBox.TYPE_INFO, timeout = 10)
		elif item[0] == _("Select Backup files"):
			self.session.openWithCallback(self.backupfiles_choosen,BackupSelection)
		elif item[0] == _("Software Manager Setup"):
			self.session.open(SoftwareManagerSetup)
######## Select PluginDownloadBrowser Menu ##############################
		elif item[0] == _("Plugin Browser"):
			self.session.open(PluginBrowser)
		elif item[0] == _("Download Plugins"):
			self.session.open(PluginDownloadBrowser, 0)
		elif item[0] == _("Remove Plugins"):
			self.session.open(PluginDownloadBrowser, 1)
		elif item[0] == _("IPK Installer"):
			try:
				from Plugins.Extensions.MediaScanner.plugin import main
				main(self.session)
			except:
				self.session.open(MessageBox, _("Sorry MediaScanner is not installed!"), MessageBox.TYPE_INFO, timeout = 10)
######## Select Harddisk Menu ############################################
		elif item[0] == _("Harddisk Setup"):
			self.openSetup("harddisk")
		elif item[0] == _("Initialization"):
			self.session.open(HarddiskSelection)
		elif item[0] == _("Filesystem Check"):
			self.session.open(HarddiskFsckSelection)
		elif item[0] == _("Convert ext3 to ext4"):
			self.session.open(HarddiskConvertExt4Selection)
######## Select E2-Log Menu ############################################
		elif item[0] == _("E2 Log"):
			self.session.open(E2log)
######## Select tar Menu ############################################
		elif item[0] == _("PackageManager"):
			self.session.open(InfopanelManagerScreen)			
Esempio n. 16
0
    def okSubList(self):
        item = self["sublist"].getCurrent()

        ######## Seleccion softcam menu ##############################
        if item[0] == _("Softcam Panel"):
            import SoftPanel
            self.session.open(SoftPanel.SoftcamSetupSF)
        elif item[0] == _("card-Panel Setup"):
            import CardPanel
            self.session.open(CardPanel.CardserverSetup)
        elif item[0] == _("CheckSoftcam"):
            from Plugins.Extensions.CamCheck.plugin import SetupCamTest
            self.session.open(SetupCamTest)
        elif item[0] == _("CCcamEdit"):
            import ecccam
            self.session.open(ecccam.ecccam_setup)
        elif item[0] == _("CCcam suite"):
            sys.path.append(
                '/usr/lib/enigma2/python/Screens/SFextra/CCcamInfo')
            import cccaminfo
            self.session.open(cccaminfo.CCcamInfoMain)
        elif item[0] == _("Oscam suite"):
            sys.path.append(
                '/usr/lib/enigma2/python/Screens/SFextra/OscamInfo')
            import oscaminfo
            self.session.open(oscaminfo.OscamInfoMenu)
        elif item[0] == _("Gbox suite"):
            sys.path.append(
                '/usr/lib/enigma2/python/Screens/SFextra/GboxSuite')
            import gboxsuite
            self.session.open(gboxsuite.GboxSuiteMainMenu)
        elif item[0] == _("Install CCcam.cfg"):
            self.cccam()
        elif item[0] == _("Autocam"):
            self.sfautocam()

######## Seleccion sofware manager ##############################
        if item[0] == _("Flash online"):
            from Flash import FlashOnline
            self.session.open(FlashOnline)
        elif item[0] == _("Software Update"):
            import SoftwareUpdate
            self.session.open(SoftwareUpdate.UpdatePlugin)
        elif item[0] == _("install-extensions"):
            from Plugins.SystemPlugins.SoftwareManager.plugin import PluginManager
            self.session.open(PluginManager)
        elif item[0] == _("software-restore"):
            from Plugins.SystemPlugins.SoftwareManager.ImageWizard import ImageWizard
            self.session.open(ImageWizard)
        elif item[0] == _("system-backup"):
            from Plugins.SystemPlugins.SoftwareManager.BackupRestore import BackupScreen, RestoreScreen, BackupSelection, getBackupFilename
            self.session.openWithCallback(self.backupDone,
                                          BackupScreen,
                                          runBackup=True)
        elif item[0] == _("system-restore"):
            from Plugins.SystemPlugins.SoftwareManager.BackupRestore import BackupSelection, RestoreMenu, BackupScreen, RestoreScreen, getBackupPath, getBackupFilename
            self.backuppath = getBackupPath()
            self.backupfile = getBackupFilename()
            self.fullbackupfilename = self.backuppath + "/" + self.backupfile
            if os_path.exists(self.fullbackupfilename):
                self.session.openWithCallback(
                    self.startRestore, MessageBox,
                    _("Are you sure you want to restore the backup?\nYour receiver will restart after the backup has been restored!"
                      ))
            else:
                self.session.open(MessageBox,
                                  _("Sorry, no backups found!"),
                                  MessageBox.TYPE_INFO,
                                  timeout=10)
        elif item[0] == _("ipkg-install"):
            try:
                from Plugins.Extensions.MediaScanner.plugin import main
                main(self.session)
            except:
                self.session.open(MessageBox,
                                  _("Sorry, %s has not been installed!") %
                                  ("MediaScanner"),
                                  MessageBox.TYPE_INFO,
                                  timeout=10)
        elif item[0] == _("Software Manager Setup"):
            from Plugins.SystemPlugins.SoftwareManager.plugin import SoftwareManagerSetup
            self.session.open(SoftwareManagerSetup)
######## Seleccion epg menu ##############################
        if item[0] == _("Setup Epg"):
            from Plugins.SystemPlugins.CrossEPG.crossepg_setup import CrossEPG_SetupSF
            self.session.open(CrossEPG_SetupSF)
        elif item[0] == _("Epg Providers"):
            import SFepg
            self.session.open(SFepg.CrossEPG_SFMenuProviders)
        elif item[0] == _("Epg Tools"):
            import SFepg
            self.session.open(SFepg.CrossEPG_SFMenuEpg)
        elif item[0] == _("Download now"):
            self.patchtype = getEPGPatchType()
            self.config = CrossEPG_Config()
            self.config.load()
            self.config.deleteLog()
            self.downloader()
        elif item[0] == _("Information"):
            import SFepg
            self.session.open(SFepg.CrossEPG_SFMenuInfo)
######## Seleccion utilities ##############################
        if item[0] == _("Mount Manager"):
            import Mount
            self.session.open(Mount.HddMount)
        elif item[0] == _("Full Backup"):
            import fullbackup
            self.session.open(fullbackup.ImageBackup)
        elif item[0] == _("Cron Manager"):
            import Cron
            self.session.open(Cron.CronManager)
        elif item[0] == _("Clean memory"):
            import SFextra
            self.session.open(SFextra.memoryinfo)
        elif item[0] == _("password changer"):
            import Password
            self.session.open(Password.PasswordChanger)
        elif item[0] == _("password reset"):
            self.passreset()
        elif item[0] == _("Internet speed test"):
            self.session.open(
                SFConsole,
                title=_('Running internet speed test'),
                cmdlist=[
                    'python /usr/lib/enigma2/python/Screens/SpeedTest.pyo'
                ])
        elif item[0] == _("Swap create"):
            import SFextra
            self.session.open(SFextra.SwapScreen2)
        elif item[0] == _("Update feeds"):
            self.updatefeeds()
        elif item[0] == _("Upgrade feeds"):
            import sfupgrade
            self.session.open(sfupgrade.SFsearchupgrade)
        elif item[0] == _("Crashlog"):
            import SFextra
            self.session.open(SFextra.CrashLogScreen)
        elif item[0] == _("Kernel Manager"):
            import SFextra
            self.session.open(SFextra.KernelScreen)
        elif item[0] == _("SFteam Magic"):
            import SFextra
            self.session.open(SFextra.magicsfteam)
        elif item[0] == _("Tools Ipk"):
            import minstall
            self.session.open(minstall.IPKToolsScreen2)

######## Seleccion Multimedia ##############################
        if item[0] == _("Mediatomb"):
            import Mediatomb
            self.session.open(Mediatomb.MediatombPanel)
        elif item[0] == _("Xupnpd"):
            import Mediatomb
            self.session.open(Mediatomb.xupnpdpanel)
        elif item[0] == _("Udpxy"):
            import Mediatomb
            self.session.open(Mediatomb.udpxypanel)
        elif item[0] == _("Tunerserver Panel"):
            import Tuner
            self.session.open(Tuner.TunerServer)
######## Seleccion drivers ##############################
        if item[0] == _("TDT drivers"):
            import SFextra
            self.session.open(SFextra.tdtpanel)
        elif item[0] == _("Wifi drivers"):
            import SFextra
            self.session.open(SFextra.wifipanel)

######## Seleccion infopanel ##############################
        if item[0] == _("Ip Receptor"):
            self.miip2()
        elif item[0] == _("Ecm information"):
            import SFextra
            self.session.open(SFextra.SFecminfo)
        elif item[0] == _("Driver version"):
            self.driver()
        elif item[0] == _("Box uptime"):
            self.session.open(SFConsole,
                              title=_('Box uptime'),
                              cmdlist=['uptime'])
        elif item[0] == _("Public IP"):
            self.miip()
        elif item[0] == _("Mac Adress"):
            self.mac()
        elif item[0] == _("Changelog SFteam"):
            self.changelog()

######## Seleccion skin ##############################
        if item[0] == _("weather"):
            from Plugins.Extensions.WeatherPlugin.plugin import MSNWeatherPlugin
            self.session.open(MSNWeatherPlugin)
        elif item[0] == _("skinpart"):
            import SFextra
            self.session.open(SFextra.skinpart)
######## Seleccion stream ##############################
        if item[0] == _("HDD"):
            self.streamhdd()
        elif item[0] == _("USB"):
            self.streamusb()
Esempio n. 17
0
 def ok(self):
     menu = self['Mlist'].l.getCurrentSelection()[0][2]
     print '[OPD-Panel] MenuItem: ' + menu
     if menu == 'services':
         self.services()
     elif menu == 'Pluginbrowser':
         self.session.open(PluginBrowser)
     elif menu == 'Infos':
         self.Infos()
     elif menu == 'Service_Team':
         self.session.open(Info, 'Service_Team')
     elif menu == 'Info':
         self.session.open(Info, 'SystemInfo')
     elif menu == 'ImageVersion':
         self.session.open(Info, 'ImageVersion')
     elif menu == 'FreeSpace':
         self.session.open(Info, 'FreeSpace')
     elif menu == 'Network':
         self.session.open(Info, 'Network')
     elif menu == 'Mounts':
         self.session.open(Info, 'Mounts')
     elif menu == 'Kernel':
         self.session.open(Info, 'Kernel')
     elif menu == 'Ram':
         self.session.open(Info, 'Free')
     elif menu == 'Cpu':
         self.session.open(Info, 'Cpu')
     elif menu == 'Top':
         self.session.open(Info, 'Top')
     elif menu == 'MemInfo':
         self.session.open(Info, 'MemInfo')
     elif menu == 'Module':
         self.session.open(Info, 'Module')
     elif menu == 'Mtd':
         self.session.open(Info, 'Mtd')
     elif menu == 'Partitions':
         self.session.open(Info, 'Partitions')
     elif menu == 'Swap':
         self.session.open(Info, 'Swap')
     elif menu == 'SystemInfo':
         self.System()
     elif menu == 'CronManager':
         self.session.open(CronManager)
     elif menu == 'JobManager':
         self.session.open(ScriptRunner)
     elif menu == 'SoftcamPanel':
         self.session.open(SoftcamPanel)
     elif menu == 'software-manager':
         self.Software_Manager()
     elif menu == 'software-update':
         self.session.open(SoftwarePanel)
     elif menu == 'backup-settings':
         self.session.openWithCallback(self.backupDone, BackupScreen, runBackup=True)
     elif menu == 'restore-settings':
         self.backuppath = getBackupPath()
         self.backupfile = getBackupFilename()
         self.fullbackupfilename = self.backuppath + '/' + self.backupfile
         if os_path.exists(self.fullbackupfilename):
             self.session.openWithCallback(self.startRestore, MessageBox, _('Are you sure you want to restore your STB backup?\nSTB will restart after the restore'))
         else:
             self.session.open(MessageBox, _('Sorry no backups found!'), MessageBox.TYPE_INFO, timeout=10)
     elif menu == 'backup-files':
         self.session.openWithCallback(self.backupfiles_choosen, BackupSelection)
     elif menu == 'MultiQuickButton':
         self.session.open(MultiQuickButton)
     elif menu == 'MountManager':
         self.session.open(HddMount)
     elif menu == 'Addons':
         self.session.open(AddonsUtility)
     elif menu == 'PluginWizard':
         self.session.open(ManualPanel)
     elif menu == 'DownFeed':
         self.session.open(InstallFeed)
     elif menu == 'SwapManager':
         self.session.open(Swap)
     elif menu == 'RedPanel':
         self.session.open(RedPanel)
     elif menu == 'Yellow-Key-Action':
         self.session.open(YellowPanel)
     elif menu == 'KeymapSel':
         self.session.open(KeymapSel)
     elif menu == 'LogManager':
         self.session.open(LogManager)
     elif menu == 'ImageFlash':
         self.session.open(FlashOnline)
Esempio n. 18
0
	def okSubList(self):
		item = self["sublist"].getCurrent()

######## Seleccion softcam menu ##############################
		if item[0] == _("Softcam Panel"):
			import SoftPanel
            		self.session.open(SoftPanel.SoftcamSetupSF)
		elif item[0] == _("card-Panel Setup"):
			import CardPanel
            		self.session.open(CardPanel.CardserverSetup)
		elif item[0] == _("CheckSoftcam"):
            		from Plugins.Extensions.CamCheck.plugin import SetupCamTest
			self.session.open(SetupCamTest)
		elif item[0] == _("CCcamEdit"):
            		import ecccam
			self.session.open(ecccam.ecccam_setup)
		elif item[0] == _("CCcam suite"):
            		sys.path.append('/usr/lib/enigma2/python/Screens/SFextra/CCcamInfo')
	    		import cccaminfo
            		self.session.open(cccaminfo.CCcamInfoMain)
		elif item[0] == _("Oscam suite"):
            		sys.path.append('/usr/lib/enigma2/python/Screens/SFextra/OscamInfo')
	    		import oscaminfo
            		self.session.open(oscaminfo.OscamInfoMenu)
		elif item[0] == _("Gbox suite"):
           	        sys.path.append('/usr/lib/enigma2/python/Screens/SFextra/GboxSuite')
	   	        import gboxsuite
            		self.session.open(gboxsuite.GboxSuiteMainMenu)
		elif item[0] == _("Install CCcam.cfg"):
           	        self.cccam()
		elif item[0] == _("Autocam"):
           	        self.sfautocam()

######## Seleccion sofware manager ##############################
		if item[0] == _("Flash online"):
			from Flash import FlashOnline
            		self.session.open(FlashOnline)
		elif item[0] == _("Software Update"):
			import SoftwareUpdate
			self.session.open(SoftwareUpdate.UpdatePlugin)
		elif item[0] == _("install-extensions"):
			from Plugins.SystemPlugins.SoftwareManager.plugin import PluginManager
			self.session.open(PluginManager)
		elif item[0] == _("software-restore"):
			from Plugins.SystemPlugins.SoftwareManager.ImageWizard import ImageWizard
			self.session.open(ImageWizard)
		elif item[0] == _("system-backup"):
			from Plugins.SystemPlugins.SoftwareManager.BackupRestore import BackupScreen, RestoreScreen, BackupSelection, getBackupFilename
			self.session.openWithCallback(self.backupDone,BackupScreen, runBackup = True)
		elif item[0] == _("system-restore"):
					from Plugins.SystemPlugins.SoftwareManager.BackupRestore import BackupSelection, RestoreMenu, BackupScreen, RestoreScreen, getBackupPath, getBackupFilename
					self.backuppath = getBackupPath()
					self.backupfile = getBackupFilename()
					self.fullbackupfilename = self.backuppath + "/" + self.backupfile
					if os_path.exists(self.fullbackupfilename):
						self.session.openWithCallback(self.startRestore, MessageBox, _("Are you sure you want to restore the backup?\nYour receiver will restart after the backup has been restored!"))
					else:
						self.session.open(MessageBox, _("Sorry, no backups found!"), MessageBox.TYPE_INFO, timeout = 10)
		elif item[0] == _("ipkg-install"):
					try:
						from Plugins.Extensions.MediaScanner.plugin import main
						main(self.session)
					except:
						self.session.open(MessageBox, _("Sorry, %s has not been installed!") % ("MediaScanner"), MessageBox.TYPE_INFO, timeout = 10)
		elif item[0] == _("Software Manager Setup"):
			from Plugins.SystemPlugins.SoftwareManager.plugin import SoftwareManagerSetup
			self.session.open(SoftwareManagerSetup)
######## Seleccion epg menu ##############################
		if item[0] == _("Setup Epg"):
			from Plugins.SystemPlugins.CrossEPG.crossepg_setup import CrossEPG_SetupSF
            		self.session.open(CrossEPG_SetupSF)
		elif item[0] == _("Epg Providers"):
			import SFepg
			self.session.open(SFepg.CrossEPG_SFMenuProviders)
		elif item[0] == _("Epg Tools"):
			import SFepg
			self.session.open(SFepg.CrossEPG_SFMenuEpg)
		elif item[0] == _("Download now"):
			self.patchtype = getEPGPatchType()
			self.config = CrossEPG_Config()
			self.config.load()
            		self.config.deleteLog()
            		self.downloader()
		elif item[0] == _("Information"):
			import SFepg
            		self.session.open(SFepg.CrossEPG_SFMenuInfo)
######## Seleccion utilities ##############################
		if item[0] == _("Mount Manager"):
			import Mount
           		self.session.open(Mount.HddMount)
		elif item[0] == _("Full Backup"):
 			import fullbackup
			self.session.open(fullbackup.ImageBackup)
		elif item[0] == _("Cron Manager"):
            		import Cron
            		self.session.open(Cron.CronManager)
		elif item[0] == _("Clean memory"):
			import SFextra
            		self.session.open(SFextra.memoryinfo)
		elif item[0] == _("password changer"):
			import Password
            		self.session.open(Password.PasswordChanger)
		elif item[0] == _("password reset"):
			self.passreset()
		elif item[0] == _("Internet speed test"):
			self.session.open(SFConsole, title=_('Running internet speed test'), cmdlist=['python /usr/lib/enigma2/python/Screens/SpeedTest.pyo'])
		elif item[0] == _("Swap create"):
	    		import SFextra
           		self.session.open(SFextra.SwapScreen2)
		elif item[0] == _("Update feeds"):
			self.updatefeeds()
		elif item[0] == _("Upgrade feeds"):
			import sfupgrade
			self.session.open(sfupgrade.SFsearchupgrade)
		elif item[0] == _("Crashlog"):
			import SFextra
			self.session.open(SFextra.CrashLogScreen)
		elif item[0] == _("Kernel Manager"):
			import SFextra
			self.session.open(SFextra.KernelScreen)
		elif item[0] == _("SFteam Magic"):
			import SFextra
			self.session.open(SFextra.magicsfteam)
		elif item[0] == _("Tools Ipk"):
			import minstall
			self.session.open(minstall.IPKToolsScreen2)



######## Seleccion Multimedia ##############################
		if item[0] == _("Mediatomb"):
			import Mediatomb
            		self.session.open(Mediatomb.MediatombPanel)
		elif item[0] == _("Xupnpd"):
			import Mediatomb
            		self.session.open(Mediatomb.xupnpdpanel)
		elif item[0] == _("Udpxy"):
			import Mediatomb
            		self.session.open(Mediatomb.udpxypanel)
		elif item[0] == _("Tunerserver Panel"):
			import Tuner
            		self.session.open(Tuner.TunerServer)
######## Seleccion drivers ##############################
		if item[0] == _("TDT drivers"):
			import SFextra
            		self.session.open(SFextra.tdtpanel)
		elif item[0] == _("Wifi drivers"):
			import SFextra
            		self.session.open(SFextra.wifipanel)

######## Seleccion infopanel ##############################
		if item[0] == _("Ip Receptor"):
			self.miip2()
		elif item[0] == _("Ecm information"):
			import SFextra
            		self.session.open(SFextra.SFecminfo)
		elif item[0] == _("Driver version"):
			self.driver()
		elif item[0] == _("Box uptime"):
			self.session.open(SFConsole, title=_('Box uptime'), cmdlist=['uptime'])
		elif item[0] == _("Public IP"):
			self.miip()
		elif item[0] == _("Mac Adress"):
			self.mac()
		elif item[0] == _("Changelog SFteam"):
			self.changelog()

######## Seleccion skin ##############################
		if item[0] == _("weather"):
			from Plugins.Extensions.WeatherPlugin.plugin import MSNWeatherPlugin
            		self.session.open(MSNWeatherPlugin)
		elif item[0] == _("skinpart"):
			import SFextra
            		self.session.open(SFextra.skinpart)
######## Seleccion stream ##############################
		if item[0] == _("HDD"):
			self.streamhdd()
		elif item[0] == _("USB"):
			self.streamusb()
Esempio n. 19
0
	def okSubList(self):
		item = self["sublist"].getCurrent()

######## Select Network Menu ##############################
		if item[0] == _("Network Wizard"):
			self.session.open(NetworkWizard)
		elif item[0] == _("Network Adapter Selection"):
			self.session.open(NetworkAdapterSelection)
		elif item[0] == _("Network Interface"):
			self.session.open(AdapterSetup,self.activeInterface)
		elif item[0] == _("Network Restart"):
			self.session.open(RestartNetwork)
		elif item[0] == _("Network Services"):
			self.Qnetworkservices()
			self["sublist"].moveToIndex(0)
		elif item[0] == _("Samba"):
			self.session.open(NetworkSamba)
		elif item[0] == _("NFS"):
			self.session.open(NetworkNfs)
		elif item[0] == _("FTP"):
			self.session.open(NetworkFtp)
		elif item[0] == _("AFP"):
			self.session.open(NetworkAfp)
		elif item[0] == _("OpenVPN"):
			self.session.open(NetworkOpenvpn)
		elif item[0] == _("MiniDLNA"):
			self.session.open(NetworkMiniDLNA)
		elif item[0] == _("Inadyn"):
			self.session.open(NetworkInadyn)
		elif item[0] == _("SABnzbd"):
			self.session.open(NetworkSABnzbd)
		elif item[0] == _("uShare"):
			self.session.open(NetworkuShare)
		elif item[0] == _("Telnet"):
			self.session.open(NetworkTelnet)
######## Select System Setup Menu ##############################
		elif item[0] == _("Customise"):
			self.openSetup("usage")
		elif item[0] == _("Button Setup"):
			self.openSetup("remotesetup")
		elif item[0] == _("Display Settings"):
			self.openSetup("display")
		elif item[0] == _("LCD Skin Setup"):
			self.session.open(LcdSkinSelector)
		elif item[0] == _("OSD settings"):
			self.openSetup("userinterface")
		elif item[0] == _("Channel selection"):
			self.openSetup("channelselection")
		elif item[0] == _("Recording settings"):
			self.openSetup("recording")
		elif item[0] == _("EPG settings"):
			self.openSetup("epgsettings")
######## Select Mounts Menu ##############################
		elif item[0] == _("Mount Manager"):
			self.session.open(AutoMountManager, None, plugin_path_networkbrowser)
		elif item[0] == _("Network Browser"):
			self.session.open(NetworkBrowser, None, plugin_path_networkbrowser)
		elif item[0] == _("Device Manager"):
			self.session.open(HddMount)
######## Select Softcam Menu ##############################
		elif item[0] == _("Softcam Panel"):
			self.session.open(SoftcamPanel)
		elif item[0] == _("Download Softcams"):
			self.session.open(ShowSoftcamPackages)
######## Select AV Setup Menu ##############################
		elif item[0] == _("Video Settings"):
			self.session.open(VideoSetup)
		elif item[0] == _("Audio Settings"):
			self.session.open(AudioSetup)
		elif item[0] == _("Auto Language"):
			self.openSetup("autolanguagesetup")
		elif item[0] == _("Audio Sync"):
			self.session.open(AC3LipSyncSetup, plugin_path_audiosync)
		elif item[0] == _("VideoEnhancement"):
			self.session.open(VideoEnhancementSetup)
######## Select TUNER Setup Menu ##############################
		elif item[0] == _("Tuner Configuration"):
			self.session.open(NimSelection)
		elif item[0] == _("Positioner Setup"):
			self.PositionerMain()
		elif item[0] == _("Automatic Scan"):
			self.session.open(ScanSimple)
		elif item[0] == _("Manual Scan"):
			self.session.open(ScanSetup)
		elif item[0] == _("Sat Finder"):
			self.SatfinderMain()
######## Select Software Manager Menu ##############################
		elif item[0] == _("Software Update"):
			self.session.open(SoftwarePanel)
		elif item[0] == _("Flash Online"):
			self.session.open(FlashOnline)
		elif item[0] == _("Complete Backup"):
			if DFLASH == True:
				self.session.open(dFlash)
			else:
				self.session.open(ImageBackup)
		elif item[0] == _("Backup Settings"):
			self.session.openWithCallback(self.backupDone,BackupScreen, runBackup = True)
		elif item[0] == _("Restore Settings"):
			self.backuppath = getBackupPath()
			if not path.isdir(self.backuppath):
				self.backuppath = getOldBackupPath()
			self.backupfile = getBackupFilename()
			self.fullbackupfilename = self.backuppath + "/" + self.backupfile
			if os_path.exists(self.fullbackupfilename):
				self.session.openWithCallback(self.startRestore, MessageBox, _("Are you sure you want to restore your %s %s backup?\nSTB will restart after the restore") % (getMachineBrand(), getMachineName()))
			else:
				self.session.open(MessageBox, _("Sorry no backups found!"), MessageBox.TYPE_INFO, timeout = 10)
		elif item[0] == _("Select Backup files"):
			self.session.openWithCallback(self.backupfiles_choosen,BackupSelection)
		elif item[0] == _("Software Manager Setup"):
			self.session.open(SoftwareManagerSetup)
######## Select PluginDownloadBrowser Menu ##############################
		elif item[0] == _("Plugin Browser"):
			self.session.open(PluginBrowser)
		elif item[0] == _("Download Plugins"):
			self.session.open(PluginDownloadBrowser, 0)
		elif item[0] == _("Remove Plugins"):
			self.session.open(PluginDownloadBrowser, 1)
		elif item[0] == _("Plugin Filter"):
			self.session.open(PluginFilter)
		elif item[0] == _("IPK Installer"):
			try:
				from Plugins.Extensions.MediaScanner.plugin import main
				main(self.session)
			except:
				self.session.open(MessageBox, _("Sorry MediaScanner is not installed!"), MessageBox.TYPE_INFO, timeout = 10)
######## Select Harddisk Menu ############################################
		elif item[0] == _("Harddisk Setup"):
			self.openSetup("harddisk")
		elif item[0] == _("Initialization"):
			self.session.open(HarddiskSelection)
		elif item[0] == _("Filesystem Check"):
			self.session.open(HarddiskFsckSelection)
		elif item[0] == _("Convert ext3 to ext4"):
			self.session.open(HarddiskConvertExt4Selection)
Esempio n. 20
0
    def okSubList(self):
        item = self["sublist"].getCurrent()
        selected = item[0][0]

        # ####### Select Network Menu ##############################
        if selected == _("Network wizard"):
            self.session.open(NetworkWizard)
        elif selected == _("Network adapter selection"):
            self.session.open(NetworkAdapterSelection)
        elif selected == _("Network interface"):
            self.session.open(AdapterSetup, networkinfo=self.activeInterface)
        elif selected == _("Network restart"):
            self.session.open(RestartNetwork)
        elif selected == _("Samba"):
            self.session.open(NetworkSamba)
        elif selected == _("NFS"):
            self.session.open(NetworkNfs)
        elif selected == _("FTP"):
            self.session.open(NetworkFtp)
        elif selected == _("AFP"):
            self.session.open(NetworkAfp)
        elif selected == _("OpenVPN"):
            self.session.open(NetworkOpenvpn)
        elif selected == _("DLNA server"):
            self.session.open(NetworkMiniDLNA)
        elif selected == _("DYN-DNS"):
            self.session.open(NetworkInadyn)
        # elif selected == _("SABnzbd"):
        # 	self.session.open(NetworkSABnzbd)
        elif selected == _("uShare"):
            self.session.open(NetworkuShare)
        elif selected == _("Telnet"):
            self.session.open(NetworkTelnet)
        elif selected == _("Password"):
            self.session.open(NetworkPassword)
# ####### Select AV Setup Menu ##############################
        elif selected == _("AV setup"):
            self.Qavsetup()
# ####### Select System Setup Menu ##############################
        elif selected == _("Time settings"):
            self.openSetup("time")
        elif selected == _("Language settings"):
            self.session.open(LanguageSelection)
        elif selected == _("Front panel settings"):
            self.openSetup("display")
        elif selected == _("Skin setup"):
            self.session.open(SkinSelector)
        elif selected == _("Front panel skin"):
            self.session.open(LcdSkinSelector)
        elif selected == _("GUI settings"):
            self.openSetup("userinterface")
        elif selected == _("Button settings"):
            self.openSetup("buttonsetup")
        elif selected == _("More button settings"):
            self.session.open(ButtonSetup)
        elif selected == _("HDMI-CEC"):
            from Plugins.SystemPlugins.HdmiCEC.plugin import HdmiCECSetupScreen
            self.session.open(HdmiCECSetupScreen)
        elif selected == _("Remote control code settings"):
            self.session.open(RCSetupScreen)
        elif selected == _("Fan settings"):
            self.session.open(FanSetupScreen)
        elif selected == _("Fan speed"):
            self.openSetup("fanspeed")
        elif selected == _("Automatic volume settings"):
            self.session.open(AutomaticVolumeAdjustmentConfigScreen)
        elif selected == _("Factory reset"):
            from Screens.FactoryReset import FactoryReset

            def deactivateInterfaceCB(data):
                if data is True:
                    applyConfigDataAvail(True)

            def activateInterfaceCB(self, data):
                if data is True:
                    iNetwork.activateInterface("eth0", applyConfigDataAvail)

            def applyConfigDataAvail(data):
                if data is True:
                    iNetwork.getInterfaces(getInterfacesDataAvail)

            def getInterfacesDataAvail(data):
                if data is True:
                    pass

            def msgClosed(ret):
                if ret:
                    self.session.open(TryQuitMainloop,
                                      retvalue=QUIT_FACTORY_RESET)

            self.session.openWithCallback(msgClosed, FactoryReset)
# ####### Select TV Setup Menu ##############################
        elif selected == _("Channel selection"):
            self.openSetup("channelselection")
        elif selected == _("Recording settings"):
            from Screens.Recordings import RecordingSettings
            self.session.open(RecordingSettings)
        elif selected == _("HDMI Recording settings"):
            self.openSetup("hdmirecord")
        elif selected == _("Timeshift settings"):
            from Screens.Timeshift import TimeshiftSettings
            self.session.open(TimeshiftSettings)
        elif selected == _("Auto language"):
            self.openSetup("autolanguagesetup")
        elif selected == _("Subtitle settings"):
            self.openSetup("subtitlesetup")
        elif selected == _("EPG settings"):
            self.openSetup("epgsettings")
        elif selected == _("Common Interface"):
            from Screens.Ci import CiSelection
            self.session.open(CiSelection)
        elif selected == _("Parental control"):
            from Screens.ParentalControlSetup import ParentalControlSetup
            self.session.open(ParentalControlSetup)
# ####### Select Mounts Menu ##############################
        elif selected == _("Mount manager"):
            self.session.open(AutoMountManager, None,
                              plugin_path_networkbrowser)
        elif selected == _("Network browser"):
            self.session.open(NetworkBrowser, None, plugin_path_networkbrowser)
        # elif selected == _("Device manager"):
        # 	self.session.open(HddMount)
# ####### Select Media Menu ##############################
        elif selected == _("Picture player"):
            from Plugins.Extensions.PicturePlayer.ui import Pic_Setup
            self.session.open(Pic_Setup)
        elif selected == _("Media player"):
            from Plugins.Extensions.MediaPlayer.settings import MediaPlayerSettings
            self.session.open(MediaPlayerSettings, self)
# ####### Select AV Setup Menu ##############################
        elif selected == _("AV settings"):
            self.session.open(VideoSetup)
        elif selected == _("Audio sync"):
            self.session.open(AC3LipSyncSetup, plugin_path_audiosync)
        elif selected == _("Video enhancement"):
            self.session.open(VideoEnhancementSetup)
        elif selected == _("OSD position"):
            from Screens.UserInterfacePositioner import UserInterfacePositioner
            self.session.open(UserInterfacePositioner)
        elif selected == _("OSD 3D setup"):
            from Screens.UserInterfacePositioner import OSD3DSetupScreen
            self.session.open(OSD3DSetupScreen)
# ####### Select TUNER Setup Menu ##############################
        elif selected == _("Tuner allocation"):
            self.openSetup("tunersetup")
        elif selected == _("Location scan"):
            from Screens.IniTerrestrialLocation import IniTerrestrialLocation
            self.session.open(IniTerrestrialLocation)
        elif selected == _("Remote IP channels"):
            self.session.open(RemoteTunerScanner)
        elif selected == _("Tuner configuration"):
            self.session.open(NimSelection)
        elif HAVE_POSITIONERSETUP and selected == _("Positioner setup"):
            self.PositionerMain()
        elif selected == _("Automatic scan"):
            self.session.open(ScanSimple)
        elif selected == _("Manual scan"):
            self.session.open(ScanSetup)
        elif selected == _("Blind scan"):
            self.session.open(Blindscan)
        elif HAVE_SATFINDER and selected == _("Sat finder"):
            self.SatfinderMain()
        elif HAVE_LCN_SCANNER and selected == _("LCN renumber"):
            self.session.open(LCNScannerPlugin)
# ####### Select Software Manager Menu ##############################
        elif selected == _("Create backup"):
            self.session.openWithCallback(self.backupDone,
                                          BackupScreen,
                                          runBackup=True)
        elif selected == _("Restore backup"):
            if path.exists(path.join(getBackupPath(), getBackupFilename())):
                self.session.openWithCallback(
                    self.startRestore, MessageBox,
                    _("Are you sure you want to restore your %s %s backup?\nYour %s %s will reboot after the restore"
                      ) % (getMachineBrand(), getMachineName(),
                           getMachineBrand(), getMachineName()))
            else:
                self.session.open(MessageBox,
                                  _("Sorry no backups found!"),
                                  MessageBox.TYPE_INFO,
                                  timeout=10)
        elif selected == _("Configure backups"):
            self.session.openWithCallback(self.backupfiles_choosen,
                                          BackupSelection)
        elif selected == _("Check for updates now"):
            self.session.open(UpdatePlugin)
        elif selected == _("Configure update check"):
            self.openSetup("softwareupdate")
        # elif selected == _("Software Manager Setup"):
        # 	self.session.open(SoftwareManagerSetup)
# ####### Select PluginDownloadBrowser Menu ##############################
        elif selected == _("Plugin browser"):
            self.session.open(PluginBrowser)
        elif selected == _("Download plugins"):
            self.session.open(PluginDownloadBrowser,
                              type=PluginDownloadBrowser.DOWNLOAD)
        elif selected == _("Remove plugins"):
            self.session.open(PluginDownloadBrowser,
                              type=PluginDownloadBrowser.REMOVE)
        elif selected == _("Package installer"):
            try:
                from Plugins.Extensions.MediaScanner.plugin import main
                main(self.session)
            except:
                self.session.open(MessageBox,
                                  _("Sorry MediaScanner is not installed!"),
                                  MessageBox.TYPE_INFO,
                                  timeout=10)
# ####### Select Harddisk Menu ############################################
        elif selected == _("Hard disk setup"):
            self.openSetup("harddisk")
        elif selected == _("Format hard disk"):
            self.session.open(HarddiskSelection)
        elif selected == _("File system check"):
            self.session.open(HarddiskFsckSelection)
        elif selected == _("Convert ext3 to ext4"):
            self.session.open(HarddiskConvertExt4Selection)
Esempio n. 21
0
	def okSubList(self):
		item = self['sublist'].getCurrent()
		if item[0] == _('Network Wizard'):
			self.session.open(NetworkWizard)
		elif item[0] == _('Network Adapter Selection'):
			self.session.open(NetworkAdapterSelection)
		elif item[0] == _('Network Interface'):
			self.session.open(AdapterSetup, self.activeInterface)
		elif item[0] == _('Network Restart'):
			self.session.open(RestartNetwork)
		elif item[0] == _('Network Services'):
			self.Qnetworkservices()
			self['sublist'].moveToIndex(0)
		elif item[0] == _('Samba'):
			self.session.open(NetworkSamba)
		elif item[0] == _('NFS'):
			self.session.open(NetworkNfs)
		elif item[0] == _('FTP'):
			self.session.open(NetworkFtp)
		elif item[0] == _('AFP'):
			self.session.open(NetworkAfp)
		elif item[0] == _('OpenVPN'):
			self.session.open(NetworkOpenvpn)
		elif item[0] == _('MiniDLNA'):
			self.session.open(NetworkMiniDLNA)
		elif item[0] == _('Inadyn'):
			self.session.open(NetworkInadyn)
		elif item[0] == _('SABnzbd'):
			self.session.open(NetworkSABnzbd)
		elif item[0] == _('uShare'):
			self.session.open(NetworkuShare)
		elif item[0] == _('Telnet'):
			self.session.open(NetworkTelnet)
		elif item[0] == _('Customize'):
			self.openSetup('usage')
		elif item[0] == _('Display Settings'):
			self.openSetup('lcd')
		elif item[0] == _('LCD Skin Setup'):
			self.session.open(LcdSkinSelector)
		elif item[0] == _("Skin Setup"):
			self.session.open(SkinSelector)
		elif item[0] == _('User interface'):
			self.openSetup('userinterface')
		elif item[0] == _("Recording paths"):
			self.session.open(RecordPathsSettings)
		elif item[0] == _('Recording settings'):
			self.openSetup('recording')
		elif item[0] == _('EPG settings'):
			self.openSetup('epgsettings')
		elif item[0] == _('Network Mount Manager'):
			self.session.open(AutoMountManager, None, plugin_path_networkbrowser)
		elif item[0] == _('Network Browser'):
			self.session.open(NetworkBrowser, None, plugin_path_networkbrowser)
		elif item[0] == _('Device Mount Manager'):
			self.session.open(DevicesMountPanel)
		elif item[0] == _('Softcam Panel'):
			self.session.open(SoftcamPanel)
		elif item[0] == _('Softcam-Panel Setup'):
			self.session.open(ShowSoftcamPanelExtensions)
		elif item[0] == _('Download Softcams'):
			self.session.open(ShowSoftcamPackages)
		elif item[0] == _('Cam Setup'):
			self.session.open(ScNewSelection)
		elif item[0] == _("Ecm Info Sc"):
			self.session.open(ScSetupScreen)
		elif item[0] == _("Ecm Info"):
			self.session.open(EcmInfoConfigMenu)
		elif item[0] == _('AV Settings'):
			videoSetupMain(self.session)
		elif item[0] == _('Auto Resolution'):
			autoresSetup(self.session)
		elif item[0] == _('Auto Language'):
			self.openSetup('autolanguagesetup')
		elif item[0] == _('Automatic Volume Adjustment'):
			self.session.open(AutomaticVolumeAdjustmentConfigScreen)
		elif item[0] == _('Audio Sync'):
			self.session.open(AC3LipSyncSetup, plugin_path_audiosync)
		elif item[0] == _("Testscreens"):
			self.session.open(VideoFinetune)
		elif item[0] == _('VideoEnhancement'):
			self.session.open(VideoEnhancementSetup)
		elif item[0] == _("Hdmi CEC"):
			if HDMICEC == True:
				self.session.open(HdmiCECSetupScreen)
			else:
				self.session.open(MessageBox, _('Sorry,\nHdmi CEC is not available for this box at the moment.'), MessageBox.TYPE_INFO, timeout=10)
		elif item[0] == _('Tuner Configuration'):
			self.session.open(NimSelection)
		elif item[0] == _('Positioner Setup'):
			self.PositionerMain()
		elif item[0] == _("Sundtek Control Center"):
			self.session.open(SundtekControlCenter)
		elif item[0] == _('Automatic Scan'):
			self.session.open(ScanSimple)
		elif item[0] == _('Manual Scan'):
			self.session.open(ScanSetup)
		elif item[0] == _("Fallback remote receiver setup"):
			self.session.open(SetupFallbacktuner)
		elif item[0] == _("Fast Scan"):
			FastScanMain(self.session)
		elif item[0] == _("Blind Scan"):
			BlindscanMain(self.session)
		elif item[0] == _("Cable Scan"):
			CableScanMain(self.session)
		elif item[0] == _("Terrestrial Scan"):
			TerrestrialScanMain(self.session)
		elif item[0] == _('Sat Finder'):
			self.SatfinderMain()
		elif item[0] == _('Software Update'):
			self.session.open(SoftwarePanel)
		elif item[0] == _('Flash Online'):
			self.session.open(FlashOnline)
		elif item[0] == _('Complete Backup'):
			if DFLASH == True:
				self.session.open(dFlash)
			else:
				self.session.open(ImageBackup)
		elif item[0] == _('Backup Settings'):
			self.session.openWithCallback(self.backupDone, BackupScreen, runBackup=True)
		elif item[0] == _('Restore Settings'):
			self.backuppath = getBackupPath()
			if not path.isdir(self.backuppath):
				self.backuppath = getOldBackupPath()
			self.backupfile = getBackupFilename()
			self.fullbackupfilename = self.backuppath + '/' + self.backupfile
			if os.path.exists(self.fullbackupfilename):
				self.session.openWithCallback(self.startRestore, MessageBox, _('Are you sure you want to restore your %s %s backup?\nSTB will restart after the restore') % (getMachineBrand(), getMachineName()))
			else:
				self.session.open(MessageBox, _('Sorry no backups found!'), MessageBox.TYPE_INFO, timeout=10)
		elif item[0] == _('Select Backup files'):
			self.session.openWithCallback(self.backupfiles_choosen, BackupSelection)
		elif item[0] == _('Software Manager Setup'):
			self.session.open(SoftwareManagerSetup)
		elif item[0] == _('Plugin Browser'):
			self.session.open(PluginBrowser)
		elif item[0] == _('Download Plugins'):
			self.session.open(PluginDownloadBrowser, 0)
		elif item[0] == _('Remove Plugins'):
			self.session.open(PluginDownloadBrowser, 1)
		elif item[0] == _('Plugin Filter'):
			self.session.open(PluginFilter)
		elif item[0] == _('IPK Installer'):
			try:
				from Plugins.Extensions.MediaScanner.plugin import main
				main(self.session)
			except:
				self.session.open(MessageBox, _('Sorry MediaScanner is not installed!'), MessageBox.TYPE_INFO, timeout=10)
		elif item[0] == _('IPK Uninstaller'):
			try:
				self.session.open(Ipkuninstall)
			except:
				self.session.open(MessageBox, _('Sorry IPK-uninstaller is not installed!'), MessageBox.TYPE_INFO, timeout=10)
		elif item[0] == _('Harddisk Setup'):
			self.openSetup('harddisk')
		elif item[0] == _('Initialization'):
			self.session.open(HarddiskSelection)
		elif item[0] == _('Filesystem Check'):
			self.session.open(HarddiskFsckSelection)
		return
Esempio n. 22
0
 def ok(self):
     # // Menu Selection
     # 		menu = self["Mlist"].getCurrent()
     global INFOCONF
     menu = self["Mlist"].l.getCurrentSelection()[0][2]
     print "[INFO-Panel] MenuItem: " + menu
     if menu == "Plugins":
         self.Plugins()
     elif menu == "Pluginbrowser":
         self.session.open(PluginBrowser)
     elif menu == "Infos":
         self.Infos()
     elif menu == "InfoPanel":
         self.session.open(Info, "InfoPanel")
     elif menu == "Info":
         self.session.open(Info, "SystemInfo")
     elif menu == "ImageVersion":
         self.session.open(Info, "ImageVersion")
     elif menu == "FreeSpace":
         self.session.open(Info, "FreeSpace")
     elif menu == "Network":
         self.session.open(Info, "Network")
     elif menu == "Mounts":
         self.session.open(Info, "Mounts")
     elif menu == "Kernel":
         self.session.open(Info, "Kernel")
     elif menu == "Ram":
         self.session.open(Info, "Free")
     elif menu == "Cpu":
         self.session.open(Info, "Cpu")
     elif menu == "Top":
         self.session.open(Info, "Top")
     elif menu == "MemInfo":
         self.session.open(Info, "MemInfo")
     elif menu == "Module":
         self.session.open(Info, "Module")
     elif menu == "Mtd":
         self.session.open(Info, "Mtd")
     elif menu == "Partitions":
         self.session.open(Info, "Partitions")
     elif menu == "Swap":
         self.session.open(Info, "Swap")
     elif menu == "SystemInfo":
         self.System()
     elif menu == "CronManager":
         self.session.open(CronManager)
     elif menu == "JobManager":
         self.session.open(ScriptRunner)
     elif menu == "SoftcamPanel":
         self.session.open(SoftcamPanel)
     elif menu == "software-manager":
         self.Software_Manager()
     elif menu == "software-update":
         self.session.open(SoftwarePanel)
     elif menu == "backup-settings":
         self.session.openWithCallback(self.backupDone, BackupScreen, runBackup=True)
     elif menu == "restore-settings":
         self.backuppath = getBackupPath()
         self.backupfile = getBackupFilename()
         self.fullbackupfilename = self.backuppath + "/" + self.backupfile
         if os_path.exists(self.fullbackupfilename):
             self.session.openWithCallback(
                 self.startRestore,
                 MessageBox,
                 _("Are you sure you want to restore your STB backup?\nSTB will restart after the restore"),
                 default=False,
             )
         else:
             self.session.open(MessageBox, _("Sorry no backups found!"), MessageBox.TYPE_INFO, timeout=10)
     elif menu == "backup-files":
         self.session.open(
             BackupSelection,
             title=_("Default files/folders to backup"),
             configBackupDirs=config.plugins.configurationbackup.backupdirs_default,
             readOnly=True,
         )
     elif menu == "backup-files-additional":
         self.session.open(
             BackupSelection,
             title=_("Additional files/folders to backup"),
             configBackupDirs=config.plugins.configurationbackup.backupdirs,
             readOnly=False,
         )
     elif menu == "backup-files-excluded":
         self.session.open(
             BackupSelection,
             title=_("Files/folders to exclude from backup"),
             configBackupDirs=config.plugins.configurationbackup.backupdirs_exclude,
             readOnly=False,
         )
     elif menu == "MultiQuickButton":
         self.session.open(MultiQuickButton)
     elif menu == "MountManager":
         self.session.open(HddMount)
     elif menu == "SwapManager":
         self.session.open(Swap)
     elif menu == "Softcam-Panel Setup":
         self.session.open(ShowSoftcamPanelExtensions)
     elif menu == "KeymapSel":
         self.session.open(KeymapSel)
     else:
         pass
Esempio n. 23
0
	def ok(self):
		#// Menu Selection
#		menu = self["Mlist"].getCurrent()
		global INFOCONF
		menu = self['Mlist'].l.getCurrentSelection()[0][2]
		print '[INFO-Panel] MenuItem: ' + menu
		if menu == "Plugins":
			self.Plugins()
		elif menu == "Pluginbrowser":
			self.session.open(PluginBrowser)
		elif menu == "Infos":
			self.Infos()
		elif menu == "InfoPanel":
			self.session.open(Info, "InfoPanel")
		elif menu == "Info":
			self.session.open(Info, "SystemInfo")
		elif menu == "ImageVersion":
			self.session.open(Info, "ImageVersion")
		elif menu == "FreeSpace":
			self.session.open(Info, "FreeSpace")
		elif menu == "Network":
			self.session.open(Info, "Network")
		elif menu == "Mounts":
			self.session.open(Info, "Mounts")
		elif menu == "Kernel":
			self.session.open(Info, "Kernel")
		elif menu == "Ram":
			self.session.open(Info, "Free")
		elif menu == "Cpu":
			self.session.open(Info, "Cpu")
		elif menu == "Top":
			self.session.open(Info, "Top")
		elif menu == "MemInfo":
			self.session.open(Info, "MemInfo")
		elif menu == "Module":
			self.session.open(Info, "Module")
		elif menu == "Mtd":
			self.session.open(Info, "Mtd")
		elif menu == "Partitions":
			self.session.open(Info, "Partitions")
		elif menu == "Swap":
			self.session.open(Info, "Swap")
		elif menu == "SystemInfo":
			self.System()
		elif menu == "CronManager":
			self.session.open(CronManager)	
		elif menu == "JobManager":
			self.session.open(ScriptRunner)
		elif menu == "SoftcamPanel":
			self.session.open(SoftcamPanel)
		elif menu == "software-manager":
			self.Software_Manager()
		elif menu == "software-update":
			self.session.open(SoftwarePanel)
		elif menu == "backup-settings":
			self.session.openWithCallback(self.backupDone,BackupScreen, runBackup = True)
		elif menu == "restore-settings":
			self.backuppath = getBackupPath()
			self.backupfile = getBackupFilename()
			self.fullbackupfilename = self.backuppath + "/" + self.backupfile
			if os_path.exists(self.fullbackupfilename):
				self.session.openWithCallback(self.startRestore, MessageBox, _("Are you sure you want to restore your STB backup?\nSTB will restart after the restore"))
			else:
				self.session.open(MessageBox, _("Sorry no backups found!"), MessageBox.TYPE_INFO, timeout = 10)
		elif menu == "backup-files":
			self.session.openWithCallback(self.backupfiles_choosen,BackupSelection)
		elif menu == "MultiQuickButton":
			self.session.open(MultiQuickButton)
		elif menu == "MountManager":
			self.session.open(HddMount)
		elif menu == "SundtekControlCenter":
			self.session.open(SundtekControlCenter)
		elif menu == "SwapManager":
			self.session.open(Swap)
		elif menu == "RedPanel":
			self.session.open(RedPanel)
		elif menu == "Yellow-Key-Action":
			self.session.open(YellowPanel)
		elif menu == "Softcam-Panel Setup":
			self.session.open(ShowSoftcamPanelExtensions)
		elif menu == "KeymapSel":
			self.session.open(KeymapSel)
		else:
			pass
Esempio n. 24
0
 def ok(self):
     menu = self['Mlist'].l.getCurrentSelection()[0][2]
     print '[INFO-Panel] MenuItem: ' + menu
     if menu == 'Plugins':
         self.Plugins()
     elif menu == 'Pluginbrowser':
         self.session.open(PluginBrowser)
     elif menu == 'Infos':
         self.Infos()
     elif menu == 'InfoPanel':
         self.session.open(Info, 'InfoPanel')
     elif menu == 'Info':
         self.session.open(Info, 'SystemInfo')
     elif menu == 'ImageVersion':
         self.session.open(Info, 'ImageVersion')
     elif menu == 'FreeSpace':
         self.session.open(Info, 'FreeSpace')
     elif menu == 'Network':
         self.session.open(Info, 'Network')
     elif menu == 'Mounts':
         self.session.open(Info, 'Mounts')
     elif menu == 'Kernel':
         self.session.open(Info, 'Kernel')
     elif menu == 'Ram':
         self.session.open(Info, 'Free')
     elif menu == 'Cpu':
         self.session.open(Info, 'Cpu')
     elif menu == 'Top':
         self.session.open(Info, 'Top')
     elif menu == 'MemInfo':
         self.session.open(Info, 'MemInfo')
     elif menu == 'Module':
         self.session.open(Info, 'Module')
     elif menu == 'Mtd':
         self.session.open(Info, 'Mtd')
     elif menu == 'Partitions':
         self.session.open(Info, 'Partitions')
     elif menu == 'Swap':
         self.session.open(Info, 'Swap')
     elif menu == 'SystemInfo':
         self.System()
     elif menu == 'CronTimer':
         self.session.open(CronTimers)
     elif menu == 'JobManager':
         self.session.open(ScriptRunner)
     elif menu == 'OScamInfo':
         from Screens.OScamInfo import OscamInfoMenu
         self.session.open(OscamInfoMenu)
     elif menu == 'SoftcamPanel':
         self.session.open(SoftcamPanel)
     elif menu == 'software-manager':
         self.Software_Manager()
     elif menu == 'software-update':
         self.session.open(SoftwarePanel)
     elif menu == 'backup-settings':
         self.session.openWithCallback(self.backupDone, BackupScreen, runBackup=True)
     elif menu == 'restore-settings':
         self.backuppath = getBackupPath()
         self.backupfile = getBackupFilename()
         self.fullbackupfilename = self.backuppath + '/' + self.backupfile
         if os_path.exists(self.fullbackupfilename):
             self.session.openWithCallback(self.startRestore, MessageBox, _('Are you sure you want to restore your STB backup?\nSTB will restart after the restore'), default=False)
         else:
             self.session.open(MessageBox, _('Sorry no backups found!'), MessageBox.TYPE_INFO, timeout=10)
     elif menu == 'backup-files':
         self.session.open(BackupSelection, title=_('Default files/folders to backup'), configBackupDirs=config.plugins.configurationbackup.backupdirs_default, readOnly=True)
     elif menu == 'backup-files-additional':
         self.session.open(BackupSelection, title=_('Additional files/folders to backup'), configBackupDirs=config.plugins.configurationbackup.backupdirs, readOnly=False)
     elif menu == 'backup-files-excluded':
         self.session.open(BackupSelection, title=_('Files/folders to exclude from backup'), configBackupDirs=config.plugins.configurationbackup.backupdirs_exclude, readOnly=False)
     elif menu == 'MultiQuickButton':
         self.session.open(MultiQuickButton)
     elif menu == 'MountManager':
         self.session.open(HddMount)
     elif menu == 'SwapManager':
         self.session.open(Swap)
     elif menu == 'Softcam-Panel Setup':
         self.session.open(ShowSoftcamPanelExtensions)
     elif menu == 'KeymapSel':
         self.session.open(KeymapSel)
Esempio n. 25
0
	def okSubList(self):
		item = self["sublist"].getCurrent()

######## Select Network Menu ##############################
		if item[0] == _("Network Wizard"):
			self.session.open(NetworkWizard)
		elif item[0] == _("Network Adapter Selection"):
			self.session.open(NetworkAdapterSelection)
		elif item[0] == _("Network Interface"):
			self.session.open(AdapterSetup,self.activeInterface)
		elif item[0] == _("Network Restart"):
			self.session.open(RestartNetwork)
		elif item[0] == _("Network Services"):
			self.Qnetworkservices()
			self["sublist"].moveToIndex(0)
		elif item[0] == _("Samba"):
			self.session.open(NetworkSamba)
		elif item[0] == _("NFS"):
			self.session.open(NetworkNfs)
		elif item[0] == _("FTP"):
			self.session.open(NetworkFtp)
		elif item[0] == _("AFP"):
			self.session.open(NetworkAfp)
		elif item[0] == _("OpenVPN"):
			self.session.open(NetworkOpenvpn)
		elif item[0] == _("MiniDLNA"):
			self.session.open(NetworkMiniDLNA)
		elif item[0] == _("Inadyn"):
			self.session.open(NetworkInadyn)
		elif item[0] == _("SABnzbd"):
			self.session.open(NetworkSABnzbd)
		elif item[0] == _("uShare"):
			self.session.open(NetworkuShare)
		elif item[0] == _("Telnet"):
			self.session.open(NetworkTelnet)
		elif item[0] == _("RemoteTuner"):
			self.session.open(RemoteTunerServer)
######## Select System Setup Menu ##############################
		elif item[0] == _("Customise"):
			self.openSetup("usage")
		elif item[0] == _("Button Setup"):
			self.openSetup("remotesetup")
		elif item[0] == _("Display Settings"):
			self.openSetup("display")
		elif item[0] == _("LCD Skin Setup"):
			self.session.open(LcdSkinSelector)
		elif item[0] == _("OSD settings"):
			self.openSetup("userinterface")
		elif item[0] == _("Channel selection"):
			self.openSetup("channelselection")
		elif item[0] == _("Recording settings"):
			self.openSetup("recording")
		elif item[0] == _("EPG settings"):
			self.openSetup("epgsettings")
######## Select Mounts Menu ##############################
		elif item[0] == _("Mount Manager"):
			self.session.open(AutoMountManager, None, plugin_path_networkbrowser)
		elif item[0] == _("Network Browser"):
			self.session.open(NetworkBrowser, None, plugin_path_networkbrowser)
		elif item[0] == _("Device Manager"):
			self.session.open(HddMount)
######## Select Softcam Menu ##############################
		elif item[0] == _("Softcam Panel"):
			self.session.open(SoftcamPanel)
		elif item[0] == _("Download Softcams"):
			self.session.open(ShowSoftcamPackages)
######## Select AV Setup Menu ##############################
		elif item[0] == _("AV Settings"):
			self.session.open(VideoSetup)
		elif item[0] == _("Auto Language"):
			self.openSetup("autolanguagesetup")
		elif item[0] == _("Audio Sync"):
			self.session.open(AC3LipSyncSetup, plugin_path_audiosync)
		elif item[0] == _("VideoEnhancement"):
			self.session.open(VideoEnhancementSetup)
######## Select TUNER Setup Menu ##############################
		elif item[0] == _("Tuner Configuration"):
			self.session.open(NimSelection)
		elif item[0] == _("Positioner Setup"):
			self.PositionerMain()
		elif item[0] == _("Automatic Scan"):
			self.session.open(ScanSimple)
		elif item[0] == _("Manual Scan"):
			self.session.open(ScanSetup)
		elif item[0] == _("Sat Finder"):
			self.SatfinderMain()
######## Select Software Manager Menu ##############################
		elif item[0] == _("Software Update"):
			self.session.open(SoftwarePanel)
		elif item[0] == _("Flash Online"):
			self.session.open(FlashOnline)
		elif item[0] == _("Complete Backup"):
			if DFLASH == True:
				self.session.open(dFlash)
			else:
				self.session.open(ImageBackup)
		elif item[0] == _("Backup Settings"):
			self.session.openWithCallback(self.backupDone,BackupScreen, runBackup = True)
		elif item[0] == _("Restore Settings"):
			self.backuppath = getBackupPath()
			if not path.isdir(self.backuppath):
				self.backuppath = getOldBackupPath()
			self.backupfile = getBackupFilename()
			self.fullbackupfilename = self.backuppath + "/" + self.backupfile
			if os_path.exists(self.fullbackupfilename):
				self.session.openWithCallback(self.startRestore, MessageBox, _("Are you sure you want to restore your %s %s backup?\nSTB will restart after the restore") % (getMachineBrand(), getMachineName()))
			else:
				self.session.open(MessageBox, _("Sorry no backups found!"), MessageBox.TYPE_INFO, timeout = 10)
		elif item[0] == _("Select Backup files"):
			self.session.openWithCallback(self.backupfiles_choosen,BackupSelection)
		elif item[0] == _("Software Manager Setup"):
			self.session.open(SoftwareManagerSetup)
######## Select PluginDownloadBrowser Menu ##############################
		elif item[0] == _("Plugin Browser"):
			self.session.open(PluginBrowser)
		elif item[0] == _("Download Plugins"):
			self.session.open(PluginDownloadBrowser, 0)
		elif item[0] == _("Remove Plugins"):
			self.session.open(PluginDownloadBrowser, 1)
		elif item[0] == _("Plugin Filter"):
			self.session.open(PluginFilter)
		elif item[0] == _("IPK Installer"):
			try:
				from Plugins.Extensions.MediaScanner.plugin import main
				main(self.session)
			except:
				self.session.open(MessageBox, _("Sorry MediaScanner is not installed!"), MessageBox.TYPE_INFO, timeout = 10)
######## Select Harddisk Menu ############################################
		elif item[0] == _("Harddisk Setup"):
			self.openSetup("harddisk")
		elif item[0] == _("Initialization"):
			self.session.open(HarddiskSelection)
		elif item[0] == _("Filesystem Check"):
			self.session.open(HarddiskFsckSelection)
		elif item[0] == _("Convert ext3 to ext4"):
			self.session.open(HarddiskConvertExt4Selection)
Esempio n. 26
0
	def okSubList(self):
		item = self["sublist"].getCurrent()

######## Select Network Menu ##############################
		if item[0] == _("Network Wizard"):
			from Plugins.SystemPlugins.NetworkWizard.NetworkWizard import NetworkWizard
			self.session.open(NetworkWizard)
		elif item[0] == _("Network Adapter Selection"):
			self.session.open(NetworkAdapterSelection)
		elif item[0] == _("Network Interface"):
			self.session.open(AdapterSetup, self.activeInterface)
		elif item[0] == _("Network Restart"):
			self.session.open(RestartNetwork)
		elif item[0] == _("Network Services"):
			self.Qnetworkservices()
			self["sublist"].moveToIndex(0)
		elif item[0] == _("Samba"):
			self.session.open(NetworkSamba)
		elif item[0] == _("NFS"):
			self.session.open(NetworkNfs)
		elif item[0] == _("FTP"):
			self.session.open(NetworkFtp)
		elif item[0] == _("AFP"):
			self.session.open(NetworkAfp)
		elif item[0] == _("OpenVPN"):
			self.session.open(NetworkOpenvpn)
		elif item[0] == _("MiniDLNA"):
			self.session.open(NetworkMiniDLNA)
		elif item[0] == _("Inadyn"):
			self.session.open(NetworkInadyn)
		elif item[0] == _("SABnzbd"):
			self.session.open(NetworkSABnzbd)
		elif item[0] == _("SATPI"):
			self.session.open(NetworkSATPI)
		elif item[0] == _("uShare"):
			self.session.open(NetworkuShare)
		elif item[0] == _("Telnet"):
			self.session.open(NetworkTelnet)
######## Select System Setup Menu ##############################
		elif item[0] == _("Customize"):
			self.openSetup("Usage")
		elif item[0] == _("Button Setup"):
			self.openSetup("RemoteButton")
		elif item[0] == _("Display Settings"):
			self.openSetup("Display")
		elif item[0] == _("LCD Skin Setup"):
			self.session.open(LcdSkinSelector)
		elif item[0] == _("Skin Setup"):
			self.session.open(SkinSelector)
		elif item[0] == _("OSD Settings"):
			self.openSetup("UserInterface")
		elif item[0] == _("Channel selection"):
			self.openSetup("ChannelSelection")
		elif item[0] == _("Recording Settings"):
			self.openSetup("Recording")
		elif item[0] == _("EPG Settings"):
			self.openSetup("EPG")
######## Select Mounts Menu ##############################
		elif item[0] == _("Mount Manager"):
			from Plugins.SystemPlugins.NetworkBrowser.MountManager import AutoMountManager
			plugin_path_networkbrowser = eEnv.resolve("${libdir}/enigma2/python/Plugins/SystemPlugins/NetworkBrowser")
			self.session.open(AutoMountManager, None, plugin_path_networkbrowser)
		elif item[0] == _("Network Browser"):
			from Plugins.SystemPlugins.NetworkBrowser.NetworkBrowser import NetworkBrowser
			plugin_path_networkbrowser = eEnv.resolve("${libdir}/enigma2/python/Plugins/SystemPlugins/NetworkBrowser")
			self.session.open(NetworkBrowser, None, plugin_path_networkbrowser)
		elif item[0] == _("Device Manager"):
			self.session.open(HddMount)
######## Select Softcam Menu ##############################
		elif item[0] == _("Softcam Settings"):
			self.session.open(SoftcamSetup)
		elif item[0] == _("OScamInfo"):
			self.session.open(OscamInfoMenu)
		elif item[0] == _("CCcam Info"):
			self.session.open(CCcamInfoMain)
		elif item[0] == _("Download Softcams"):
			self.session.open(ShowSoftcamPackages)
######## Select AV Setup Menu ##############################
		elif item[0] == _("Video Settings"):
			self.session.open(VideoSetup)
		elif item[0] == _("Audio Settings"):
			self.openSetup("Audio")
		elif item[0] == _("Auto Language"):
			self.openSetup("AutoLanguage")
		elif item[0] == _("Audio Sync"):
			from Plugins.Extensions.AudioSync.AC3setup import AC3LipSyncSetup
			plugin_path_audiosync = eEnv.resolve("${libdir}/enigma2/python/Plugins/Extensions/AudioSync")
			self.session.open(AC3LipSyncSetup, plugin_path_audiosync)
		elif item[0] == _("VideoEnhancement"):
			from Plugins.SystemPlugins.VideoEnhancement.plugin import VideoEnhancementSetup
			self.session.open(VideoEnhancementSetup)
######## Select TUNER Setup Menu ##############################
		elif item[0] == _("Tuner Configuration"):
			self.session.open(NimSelection)
		elif item[0] == _("Positioner Setup"):
			self.PositionerMain()
		elif item[0] == _("Automatic Scan"):
			self.session.open(ScanSimple)
		elif item[0] == _("Manual Scan"):
			self.session.open(ScanSetup)
		elif item[0] == _("Sat Finder"):
			self.SatfinderMain()
######## Select Software Manager Menu ##############################
		elif item[0] == _("Software Update"):
			from Screens.SoftwareUpdate import SoftwareUpdate
			self.session.open(SoftwareUpdate)
		elif item[0] == _("Flash Online"):
			from Plugins.SystemPlugins.SoftwareManager.Flash_online import FlashOnline
			self.session.open(FlashOnline)
		elif item[0] == _("Complete Backup"):
			self.CompleteBackup()
		elif item[0] == _("Backup Settings"):
			self.session.openWithCallback(self.backupDone, BackupScreen, runBackup=True)
		elif item[0] == _("Restore Settings"):
			self.backuppath = getBackupPath()
			if not isdir(self.backuppath):
				self.backuppath = getOldBackupPath()
			self.backupfile = getBackupFilename()
			self.fullbackupfilename = self.backuppath + "/" + self.backupfile
			if exists(self.fullbackupfilename):
				self.session.openWithCallback(self.startRestore, MessageBox, _("Are you sure you want to restore your %s %s backup?\nSTB will restart after the restore") % (getMachineBrand(), getMachineName()), default=False)
			else:
				self.session.open(MessageBox, _("Sorry no backups found!"), MessageBox.TYPE_INFO, timeout=10)
		elif item[0] == _("Show default backup files"):
			self.session.open(BackupSelection, title=_("Default files/folders to backup"), configBackupDirs=config.plugins.configurationbackup.backupdirs_default, readOnly=True)
		elif item[0] == _("Select additional backup files"):
			self.session.open(BackupSelection, title=_("Additional files/folders to backup"), configBackupDirs=config.plugins.configurationbackup.backupdirs, readOnly=False)
		elif item[0] == _("Select excluded backup files"):
			self.session.open(BackupSelection, title=_("Files/folders to exclude from backup"), configBackupDirs=config.plugins.configurationbackup.backupdirs_exclude, readOnly=False)
		elif item[0] == _("Software Manager Setup"):
			self.session.open(SoftwareManagerSetup)
######## Select PluginDownloadBrowser Menu ##############################
		elif item[0] == _("Plugin Browser"):
			self.session.open(PluginBrowser)
		elif item[0] == _("Download Plugins"):
			self.session.open(PluginDownloadBrowser, 0)
		elif item[0] == _("Remove Plugins"):
			self.session.open(PluginDownloadBrowser, 1)
		elif item[0] == _("Plugin Filter Settings"):
			self.session.open(PluginFilter)
		elif item[0] == _("IPK Installer"):
			try:
				from Plugins.Extensions.MediaScanner.plugin import main
				main(self.session)
			except:
				self.session.open(MessageBox, _("Sorry MediaScanner is not installed!"), MessageBox.TYPE_INFO, timeout=10)
######## Select Harddisk Menu ############################################
		elif item[0] == _("Harddisk Setup"):
			self.openSetup("HardDisk")
		elif item[0] == _("Initialization"):
			self.session.open(HarddiskSelection)
		elif item[0] == _("File System Check"):
			self.session.open(HarddiskFsckSelection)
		elif item[0] == _("Convert ext3 to ext4"):
			self.session.open(HarddiskConvertExt4Selection)
Esempio n. 27
0
 def ok(self):
     #// Menu Selection
     #		menu = self["Mlist"].getCurrent()
     global INFOCONF
     menu = self['Mlist'].l.getCurrentSelection()[0][2]
     print('[INFO-Panel] MenuItem: ' + menu)
     if menu == "Plugins":
         self.Plugins()
     elif menu == "Pluginbrowser":
         self.session.open(PluginBrowser)
     elif menu == "Infos":
         self.Infos()
     elif menu == "InfoPanel":
         self.session.open(Info, "InfoPanel")
     elif menu == "Info":
         self.session.open(Info, "SystemInfo")
     elif menu == "ImageVersion":
         self.session.open(Info, "ImageVersion")
     elif menu == "FreeSpace":
         self.session.open(Info, "FreeSpace")
     elif menu == "Network":
         self.session.open(Info, "Network")
     elif menu == "Mounts":
         self.session.open(Info, "Mounts")
     elif menu == "Kernel":
         self.session.open(Info, "Kernel")
     elif menu == "Ram":
         self.session.open(Info, "Free")
     elif menu == "Cpu":
         self.session.open(Info, "Cpu")
     elif menu == "Top":
         self.session.open(Info, "Top")
     elif menu == "MemInfo":
         self.session.open(Info, "MemInfo")
     elif menu == "Module":
         self.session.open(Info, "Module")
     elif menu == "Mtd":
         self.session.open(Info, "Mtd")
     elif menu == "Partitions":
         self.session.open(Info, "Partitions")
     elif menu == "Swap":
         self.session.open(Info, "Swap")
     elif menu == "SystemInfo":
         self.System()
     elif menu == "CronTimer":
         self.session.open(CronTimers)
     elif menu == "SoftcamSetup":
         self.session.open(SoftcamSetup)
     elif menu == "JobManager":
         self.session.open(ScriptRunner)
     elif menu == "OScamInfo":
         from Screens.OScamInfo import OscamInfoMenu
         self.session.open(OscamInfoMenu)
     elif menu == "software-manager":
         self.Software_Manager()
     elif menu == "software-update":
         self.session.open(SoftwarePanel)
     elif menu == "backup-settings":
         self.session.openWithCallback(self.backupDone,
                                       BackupScreen,
                                       runBackup=True)
     elif menu == "restore-settings":
         self.backuppath = getBackupPath()
         self.backupfile = getBackupFilename()
         self.fullbackupfilename = self.backuppath + "/" + self.backupfile
         if os_path.exists(self.fullbackupfilename):
             self.session.openWithCallback(
                 self.startRestore,
                 MessageBox,
                 _("Are you sure you want to restore your STB backup?\nSTB will restart after the restore"
                   ),
                 default=False)
         else:
             self.session.open(MessageBox,
                               _("Sorry no backups found!"),
                               MessageBox.TYPE_INFO,
                               timeout=10)
     elif menu == "backup-files":
         self.session.open(BackupSelection,
                           title=_("Default files/folders to backup"),
                           configBackupDirs=config.plugins.
                           configurationbackup.backupdirs_default,
                           readOnly=True)
     elif menu == "backup-files-additional":
         self.session.open(
             BackupSelection,
             title=_("Additional files/folders to backup"),
             configBackupDirs=config.plugins.configurationbackup.backupdirs,
             readOnly=False)
     elif menu == "backup-files-excluded":
         self.session.open(BackupSelection,
                           title=_("Files/folders to exclude from backup"),
                           configBackupDirs=config.plugins.
                           configurationbackup.backupdirs_exclude,
                           readOnly=False)
     elif menu == "MultiQuickButton":
         self.session.open(MultiQuickButton)
     elif menu == "MountManager":
         self.session.open(HddMount)
     elif menu == "SwapManager":
         self.session.open(Swap)
     elif menu == "KeymapSel":
         self.session.open(KeymapSel)
     elif menu == "Edid":
         self.session.open(Info, "Edid")
     else:
         pass
Esempio n. 28
0
	def ok(self):
		#// Menu Selection
#		menu = self["Mlist"].getCurrent()
		global INFOCONF
		menu = self['Mlist'].l.getCurrentSelection()[0][2]
		print '[INFO-Panel] MenuItem: ' + menu
		if menu == "Extras":
			self.Extras()
		elif menu == "Pluginbrowser":
			self.session.open(PluginBrowser)
		elif menu == "Infos":
			self.Infos()
		elif menu == "InfoPanel":
			self.session.open(Info, "InfoPanel")
		elif menu == "Info":
			self.session.open(Info, "Sytem_info")
		elif menu == "FreeSpace":
			self.session.open(Info, "FreeSpace")
		elif menu == "Network":
			self.session.open(Info, "Network")
		elif menu == "Mounts":
			self.session.open(Info, "Mounts")
		elif menu == "Kernel":
			self.session.open(Info, "Kernel")
		elif menu == "Ram":
			self.session.open(Info, "Free")
		elif menu == "Cpu":
			self.session.open(Info, "Cpu")
		elif menu == "Top":
			self.session.open(Info, "Top")
		elif menu == "MemInfo":
			self.session.open(Info, "MemInfo")
		elif menu == "Module":
			self.session.open(Info, "Module")
		elif menu == "Mtd":
			self.session.open(Info, "Mtd")
		elif menu == "Partitions":
			self.session.open(Info, "Partitions")
		elif menu == "Swap":
			self.session.open(Info, "Swap")
		#elif menu == "DiskSpeed":
			#self.session.open(Disk_Speed)
		elif menu == "m3u-convert":
			self.session.open(IPTV)			
		elif menu == "PasswordChange":
			self.session.open(NFRPasswdScreen)
		elif menu == "UserMainMenu":
		        plugin_path = None
			self.session.open(UserMainMenuConfig, plugin_path)                                                				
		elif menu == "System_Info":
			self.System()
		elif menu == "JobManager":
			self.session.open(ScriptRunner)
		elif menu == "CronManager":
			self.session.open(CronTimers)			
		elif menu == "SoftcamManager":
			self.session.open(NFRCamManager)
		elif menu == "image-manager":
			self.Image_Manager()
		elif menu == "remote-manager":
			self.Remote_Manager()
		elif menu == "plugin-manager":
			self.Plugin_Manager()
		elif menu == "software-update":
			self.session.open(SoftwarePanel)
		elif menu == "backup-image":
			if DFLASH == True:
				self.session.open(dFlash)
			else:
				self.session.open(ImageBackup)		
		elif menu == "backup-settings":
			self.session.openWithCallback(self.backupDone,BackupScreen, runBackup = True)
		elif menu == "restore-settings":
			self.backuppath = getBackupPath()
			self.backupfile = getBackupFilename()
			self.fullbackupfilename = self.backuppath + "/" + self.backupfile
			if os_path.exists(self.fullbackupfilename):
				self.session.openWithCallback(self.startRestore, MessageBox, _("Are you sure you want to restore your STB backup?\nSTB will restart after the restore"))
			else:
				self.session.open(MessageBox, _("Sorry no backups found!"), MessageBox.TYPE_INFO, timeout = 10)
		#elif menu == "bootvideomanager":
		#	self.session.open(BootvideoSetupScreen)
		#elif menu == "bootlogomanager":
		#	self.session.open(BootlogoSetupScreen)	
		#elif menu == "radiologomanager":
		#	self.session.open(RadiologoSetupScreen) 
		elif menu == "spinnermanager":
			SpinnerSelector(self.session) 			
		elif menu == "backup-files":
			self.session.openWithCallback(self.backupfiles_choosen,BackupSelection)
		elif menu == "flash-local":
			self.session.open(FlashOnline)
		elif menu == "MultiQuickButton":
			self.session.open(MultiQuickButton)
		elif menu == "MountManager":
			self.session.open(HddSetup)
		elif menu == "SwapManager":
			self.session.open(SwapOverviewScreen)
		elif menu == "Red-Key-Action":
			self.session.open(RedPanel)
		elif menu == "Blue-Key-Action":
			self.session.open(BluePanel)			
		elif menu == "Multi-Key-Action":
			self.session.open(HotkeySetup)			
		elif menu == "KeymapSel":
			self.session.open(KeymapSel)
		elif menu == "QuickMenu":
			self.session.open(QuickMenu)
		elif menu == "LogManager":
			self.session.open(LogManager)
		elif menu == "PluginInstallwizard":
			self.session.open(PluginInstall)
		elif menu == "PluginDeinstallwizard":
			self.session.open(PluginDeinstall)
		#elif menu == "OpenNFRWizard":
			#self.session.open(OpenNFRWizardSetup)
		elif menu == "SkinSetup":
			self.session.open(NfrHD_Config)
		elif menu == "ImageUpdateCheck":
			self.session.open(OpenNFRWizardupdatecheck)                        	
		elif menu == "PluginReLoad":
                        if fileExists("/usr/lib/enigma2/python/Plugins/Extensions/Infopanel/PluginReLoad.pyo") or fileExists("/usr/lib/enigma2/python/Plugins/Extensions/Infopanel/PluginReLoad.py"):    
                            from Plugins.Extensions.Infopanel.PluginReLoad import PluginReLoadConfig
                            self.session.open(PluginReLoadConfig)      				
		else:
			pass