def letterChosen(self, result): if result is not None: print "result:", result self.currentLetter = result[1] self.list = [ParentalControlEntryComponent(x[0], x[1], parentalControl.getProtectionLevel(x[0]) != -1) for x in self.servicesList[result[1]]] self.servicelist.setList(self.list) else: parentalControl.save() self.close()
def letterChosen(self, result): from Components.ParentalControl import parentalControl if result is not None: self.currentLetter = result[1] self.list = [ParentalControlEntryComponent(x[0], x[1], parentalControl.getProtectionType(x[0])) for x in self.servicesList[result[1]]] self.servicelist.setList(self.list) else: parentalControl.save() self.close()
def letterChosen(self, result): if result is not None: print "result:", result self.currentLetter = result[1] self.list = [ ParentalControlEntryComponent( x[0], x[1], parentalControl.getProtectionLevel(x[0]) != -1) for x in self.servicesList[result[1]] ] self.servicelist.setList(self.list) else: parentalControl.save() self.close()
def cancel(self): from Components.ParentalControl import parentalControl parentalControl.save() self.close()
import Components.SetupDevices Components.SetupDevices.InitSetupDevices() profile("RFMod") import Components.RFmod Components.RFmod.InitRFmod() profile("Init:CI") import Screens.Ci Screens.Ci.InitCiConfig() #from enigma import dump_malloc_stats #t = eTimer() #t.callback.append(dump_malloc_stats) #t.start(1000) # first, setup a screen try: runScreenTest() plugins.shutdown() from Components.ParentalControl import parentalControl parentalControl.save() except: print 'EXCEPTION IN PYTHON STARTUP CODE:' print '-'*60 print_exc(file=stdout) quitMainloop(5) print '-'*60
def cancel(self): parentalControl.save() self.close()
import Components.SetupDevices Components.SetupDevices.InitSetupDevices() profile("RFMod") import Components.RFmod Components.RFmod.InitRFmod() profile("Init:CI") import Screens.Ci Screens.Ci.InitCiConfig() #from enigma import dump_malloc_stats #t = eTimer() #t.callback.append(dump_malloc_stats) #t.start(1000) # first, setup a screen try: runScreenTest() plugins.shutdown() from Components.ParentalControl import parentalControl parentalControl.save() except: print 'EXCEPTION IN PYTHON STARTUP CODE:' print '-' * 60 print_exc(file=stdout) quitMainloop(5) print '-' * 60