self["arrowdown"].moveTo(557, 232, 1)
self["arrowdown"].startMoving()
self["arrowup"].moveTo(800, 232, 1)
self["arrowup"].startMoving()
self["rc"].moveTo(500, 50, 1)
self["rc"].startMoving()
self["arrowup2"].moveTo(800, 320, 1)
self["arrowup2"].startMoving()
self["arrowdown"].moveTo(557, 200, 1)
self["arrowup"].moveTo(557, 355, 1)
self["arrowdown"].startMoving()
self["arrowup"].startMoving()
self["rc"].moveTo(500, 50, 1)
self["rc"].startMoving()
from Components.NimManager import nimmanager
self.condition = nimmanager.getNimType(0) != nimmanager.nimType["empty/unknown"]
self["rc"].moveTo(500, 50, 1)
self["rc"].startMoving()
self["arrowup"].moveTo(525, 320, 1)
self["arrowup"].startMoving()
self["arrowup2"].moveTo(590, 320, 1)
self["arrowup2"].startMoving()
self["arrowdown"].moveTo(740, 355, 1)
self["arrowdown"].startMoving()
from Components.NimManager import nimmanager
self.condition = nimmanager.getNimType(1) != nimmanager.nimType["empty/unknown"]
self["rc"].moveTo(500, 50, 1)
self["rc"].startMoving()
self["arrowup"].moveTo(525, 320, 1)
self["arrowup"].startMoving()
self["arrowup2"].moveTo(590, 320, 1)
self["arrowup2"].startMoving()
self["arrowdown"].moveTo(740, 355, 1)
self["arrowdown"].startMoving()
from Components.NimManager import nimmanager
self.condition = nimmanager.getNimType(2) != nimmanager.nimType["empty/unknown"]
self["rc"].moveTo(500, 50, 1)
self["rc"].startMoving()
self["arrowup"].moveTo(525, 320, 1)
self["arrowup"].startMoving()
self["arrowup2"].moveTo(590, 320, 1)
self["arrowup2"].startMoving()
self["arrowdown"].moveTo(740, 355, 1)
self["arrowdown"].startMoving()
from Components.NimManager import nimmanager
self.condition = nimmanager.getNimType(3) != nimmanager.nimType["empty/unknown"]
self["rc"].moveTo(500, 50, 1)
self["rc"].startMoving()
self["arrowup"].moveTo(525, 320, 1)
self["arrowup"].startMoving()
self["arrowup2"].moveTo(590, 320, 1)
self["arrowup2"].startMoving()
self["arrowdown"].moveTo(740, 355, 1)
self["arrowdown"].startMoving()
self["rc"].moveTo(800, 50, 1)
self["rc"].startMoving()
self["arrowup"].moveTo(800, 310, 1)
self["arrowup"].startMoving()
self["arrowup2"].moveTo(800, 310, 1)
self["arrowup2"].startMoving()
if self["list"].getSelectedIndex() == 0:
config.ParentalControl.configured.value = True
else:
config.ParentalControl.configured.value = False
config.ParentalControl.configured.save()
from ParentalControlSetup import ParentalControlChangePin
if self["list"].getSelectedIndex() == 0:
self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin"))
config.ParentalControl.setuppinactive.value = True
config.ParentalControl.setuppinactive.save()
config.ParentalControl.servicepinactive.value = True
config.ParentalControl.servicepinactive.save()
config.ParentalControl.setuppin.value = config.ParentalControl.servicepin[0].value
config.ParentalControl.setuppin.save()