aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2010-10-08 13:42:52 +0200
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2010-10-08 13:42:52 +0200
commitce804e4009e25cdb1226c006c41b7edfaab56e06 (patch)
treec322adf227f45e7c5d1c5146b5be827d249b4c2d /data
parent5f60d706ff61b12a54b4ca0cd94d0cd9cb131404 (diff)
downloadenigma2-ce804e4009e25cdb1226c006c41b7edfaab56e06.tar.gz
enigma2-ce804e4009e25cdb1226c006c41b7edfaab56e06.zip
fixes bug #592
don't activate the parental control setup protection if no pin is set
Diffstat (limited to 'data')
-rw-r--r--data/startwizard.xml10
1 files changed, 8 insertions, 2 deletions
diff --git a/data/startwizard.xml b/data/startwizard.xml
index 70a6e0dc..47d39e1e 100644
--- a/data/startwizard.xml
+++ b/data/startwizard.xml
@@ -145,7 +145,7 @@ config.ParentalControl.configured.save()
<text value="You need to set a pin code and hide it from your children.\n\nDo you want to set the pin now?" />
<list>
<listentry caption="Yes" step="finishparentalsetup" />
- <listentry caption="No" step="finishparentalsetup" />
+ <listentry caption="No" step="warnpin" />
</list>
<code pos="after">
from ParentalControlSetup import ParentalControlChangePin
@@ -153,9 +153,15 @@ if self["list"].index == 0:
self.session.open(ParentalControlChangePin, config.ParentalControl.servicepin[0], _("parental control pin"))
</code>
</step>
+ <step id="warnpin">
+ <text value="Please be aware, that anyone can disable the parental control, if you have not set a pin." />
+ </step>
<step id="finishparentalsetup">
<code>
-config.ParentalControl.setuppinactive.value = True
+if config.ParentalControl.setuppin.value == "aaaa":
+ config.ParentalControl.setuppinactive.value = False
+else:
+ config.ParentalControl.setuppinactive.value = True
config.ParentalControl.setuppinactive.save()
config.ParentalControl.servicepinactive.value = True
config.ParentalControl.servicepinactive.save()