def getSession(): global _session if _session is not None: return _session print "===== Init Session! =====" from Components.SetupDevices import InitSetupDevices InitSetupDevices() # import InfoBar to ensure correct import order from Components.config import config, ConfigYesNo, ConfigInteger, NoSave from Components.ParentalControl import InitParentalControl InitParentalControl() from Navigation import Navigation # config config.misc.standbyCounter = NoSave( ConfigInteger(default=0)) # number of standby config.misc.RestartUI = ConfigYesNo( default=False) # detect user interface restart config.misc.prev_wakeup_time = ConfigInteger(default=0) #config.misc.prev_wakeup_time_type is only valid when wakeup_time is not 0 config.misc.prev_wakeup_time_type = ConfigInteger(default=0) # 0 = RecordTimer, 1 = ZapTimer, 2 = Plugins, 3 = WakeupTimer from Components.UsageConfig import InitUsageConfig InitUsageConfig() from skin import loadSkinData loadSkinData(enigma.getDesktop(0)) from Screens.Screen import Screen from Screens.Globals import Globals Screen.global_screen = Globals() _session = Session(enigma.getDesktop(0), enigma.getDesktop(1), Navigation()) return _session
def init_parental_control(): print "init parental" from Components.ParentalControl import InitParentalControl InitParentalControl()
def init_parental_control(): print("[enigma] init parental") from Components.ParentalControl import InitParentalControl InitParentalControl()
print "language set to", language.getLanguage() eServiceEvent.setEPGLanguage(language.getLanguage()) language.addCallback(setEPGLanguage) from traceback import print_exc profile("LOAD:InfoBar") import Screens.InfoBar from Screens.SimpleSummary import SimpleSummary from sys import stdout, exc_info profile("ParentalControl") from Components.ParentalControl import InitParentalControl InitParentalControl() profile("LOAD:Navigation") from Navigation import Navigation profile("LOAD:skin") from skin import readSkin profile("LOAD:Tools") from Tools.Directories import InitFallbackFiles, resolveFilename, SCOPE_PLUGINS, SCOPE_CURRENT_SKIN from Components.config import config, configfile, ConfigText, ConfigYesNo, ConfigInteger, NoSave InitFallbackFiles() profile("ReloadProfiles") eDVBDB.getInstance().reloadBouquets()