git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'bug_736_fix_rotor_with_unicable_lnb'
[enigma2.git]
/
data
/
startwizard.xml
diff --git
a/data/startwizard.xml
b/data/startwizard.xml
index 70a6e0dc368aa53b44478950527d2a6eef318a35..a6b773e1b5ca2b2cb6c21f6dceab2ce502f828f3 100644
(file)
--- a/
data/startwizard.xml
+++ b/
data/startwizard.xml
@@
-142,10
+142,10
@@
config.ParentalControl.configured.save()
</code>
</step>
<step id="parentalsetup">
</code>
</step>
<step id="parentalsetup">
- <text value="You need to set a
pin
code and hide it from your children.\n\nDo you want to set the pin now?" />
+ <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" />
<list>
<listentry caption="Yes" step="finishparentalsetup" />
- <listentry caption="No" step="
finishparentalsetup
" />
+ <listentry caption="No" step="
warnpin
" />
</list>
<code pos="after">
from ParentalControlSetup import ParentalControlChangePin
</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>
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>
<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()
config.ParentalControl.setuppinactive.save()
config.ParentalControl.servicepinactive.value = True
config.ParentalControl.servicepinactive.save()