From a27631694342ad6f77090743b5affddef5e155e0 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Mon, 16 Oct 2006 22:37:46 +0000 Subject: add parental control setup to the start wizard --- data/startwizard.xml | 48 +++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 5 deletions(-) (limited to 'data/startwizard.xml') diff --git a/data/startwizard.xml b/data/startwizard.xml index eb1dc39c..eb16c263 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() - + @@ -112,10 +112,10 @@ self["arrowup2"].startMoving() - + - + @@ -127,9 +127,47 @@ 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() + + + + -- cgit v1.2.3