linux-dreambox-3.2: fix sha256sum after 'push to 3.2.54'
[opendreambox.git] / meta-opendreambox / recipes-dreambox / enigma2 / enigma2-3.999git20131118 / 0007-needed-changes-since-0000-is-the-ConfigPIN-default.patch
1 From c61de97aa4927d1511a4a861d0b9fbe4379cf4b6 Mon Sep 17 00:00:00 2001
2 From: ghost <andreas.monzner@dream-property.net>
3 Date: Thu, 2 Jan 2014 11:00:04 +0100
4 Subject: [PATCH 7/7] needed changes since 0000 is the ConfigPIN default
5
6 ---
7  usr/lib/enigma2/python/Screens/ParentalControlSetup.py |    8 ++++----
8  1 file changed, 4 insertions(+), 4 deletions(-)
9
10 diff --git a/usr/lib/enigma2/python/Screens/ParentalControlSetup.py b/usr/lib/enigma2/python/Screens/ParentalControlSetup.py
11 index 284294f..6120009 100644
12 --- a/usr/lib/enigma2/python/Screens/ParentalControlSetup.py
13 +++ b/usr/lib/enigma2/python/Screens/ParentalControlSetup.py
14 @@ -154,9 +154,9 @@ class ParentalControlSetup(Screen, ConfigListScreen, ProtectedScreen):
15                 self.keyCancel()
16  
17         def keyCancel(self):
18 -               if config.ParentalControl.setuppinactive.value and config.ParentalControl.setuppin.value == 'aaaa':
19 +               if config.ParentalControl.setuppinactive.value and config.ParentalControl.setuppin.value == '0000':
20                         self.session.openWithCallback(self.SetupPinMessageCallback, MessageBox, _("No valid setup PIN found!\nDo you like to change the setup PIN now?\nWhen you say 'No' here the setup protection stay disabled!"), MessageBox.TYPE_YESNO)
21 -               elif config.ParentalControl.servicepinactive.value and config.ParentalControl.servicepin[0].value == 'aaaa':
22 +               elif config.ParentalControl.servicepinactive.value and config.ParentalControl.servicepin[0].value == '0000':
23                         self.session.openWithCallback(self.ServicePinMessageCallback, MessageBox, _("No valid service PIN found!\nDo you like to change the service PIN now?\nWhen you say 'No' here the service protection stay disabled!"), MessageBox.TYPE_YESNO)
24                 else:
25                         for x in self["config"].list:
26 @@ -325,7 +325,7 @@ class ParentalControlChangePin(Screen, ConfigListScreen, ProtectedScreen):
27                 self.list.append(getConfigListEntry(_("Reenter new PIN"), NoSave(self.pin2)))
28                 ConfigListScreen.__init__(self, self.list)
29  #              print "old pin:", pin
30 -               #if pin.value != "aaaa":
31 +               #if pin.value != "0000":
32                         #self.onFirstExecBegin.append(boundFunction(self.session.openWithCallback, self.pinEntered, PinInput, pinList = [self.pin.value], title = _("please enter the old pin"), windowTitle = _("Change pin code")))
33                 ProtectedScreen.__init__(self)
34                 
35 @@ -352,7 +352,7 @@ class ParentalControlChangePin(Screen, ConfigListScreen, ProtectedScreen):
36                 return _("Please enter the old PIN code")
37  
38         def isProtected(self):
39 -               return (self.pin.value != "aaaa")
40 +               return (self.pin.value != "0000")
41  
42         def protectedWithPin(self):
43                 return self.pin.value
44 -- 
45 1.7.10.4
46