X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=data%2Fstartwizard.xml;h=368b301ea8378295c3f6ae50f4224eb9bd89a97d;hb=2f8db5677b5ed8885394aa531168c67cc72cb374;hp=eb1dc39cef871b2b9ef58f6398a991d17865fab4;hpb=7d12ab8c2fdec5733cce781faf795f8a212cfa65;p=vuplus_dvbapp diff --git a/data/startwizard.xml b/data/startwizard.xml index eb1dc39..368b301 100644 --- a/data/startwizard.xml +++ b/data/startwizard.xml @@ -1,5 +1,5 @@ - + self["arrowdown"].moveTo(557, 232, 1) @@ -10,7 +10,7 @@ self["rc"].moveTo(500, 50, 1) self["rc"].startMoving() - + @@ -30,7 +30,7 @@ self["rc"].startMoving() from Components.NimManager import nimmanager -self.condition = nimmanager.getNimType(0) != nimmanager.nimType["empty/unknown"] +self.condition = len(nimmanager.nim_slots) > 0 and not nimmanager.nim_slots[0].empty @@ -48,7 +48,7 @@ self["arrowdown"].startMoving() from Components.NimManager import nimmanager -self.condition = nimmanager.getNimType(1) != nimmanager.nimType["empty/unknown"] +self.condition = len(nimmanager.nim_slots) > 1 and not nimmanager.nim_slots[1].empty @@ -66,10 +66,10 @@ self["arrowdown"].startMoving() from Components.NimManager import nimmanager -self.condition = nimmanager.getNimType(2) != nimmanager.nimType["empty/unknown"] +self.condition = len(nimmanager.nim_slots) > 2 and not nimmanager.nim_slots[2].empty - - + + self["rc"].moveTo(500, 50, 1) self["rc"].startMoving() @@ -84,10 +84,10 @@ self["arrowdown"].startMoving() from Components.NimManager import nimmanager -self.condition = nimmanager.getNimType(3) != nimmanager.nimType["empty/unknown"] +self.condition = len(nimmanager.nim_slots) > 3 and not nimmanager.nim_slots[3].empty - - + + self["rc"].moveTo(500, 50, 1) self["rc"].startMoving() @@ -112,10 +112,10 @@ self["arrowup2"].startMoving() - + - + @@ -127,9 +127,47 @@ self["arrowup2"].startMoving() - + + + + + + + + +if self["list"].index == 0: + config.ParentalControl.configured.value = True +else: + config.ParentalControl.configured.value = False +config.ParentalControl.configured.save() + + + + + + + + + +from ParentalControlSetup import ParentalControlChangePin +if self["list"].index == 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() + + + +