2 from Components.Sources.Source import Source
5 class PowerState( Source):
7 def __init__(self,session):
12 def handleCommand(self, cmd):
14 print "PowerState:",self.cmd
15 if self.cmd == "" or self.cmd is None:
16 print "the PowerState was not defined (%s)" % self.cmd
17 return [[False,"the PowerState was not defined"]]
19 # 1: poweroff/deepstandby
27 from Screens.Standby import Standby
28 self.session.open(Standby)
30 print "TryQuitMainloop if"
31 from Screens.Standby import TryQuitMainloop
32 self.session.open(TryQuitMainloop, type)
34 print "PowerState was not defined correctly (%s)" % type