diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-10-10 13:56:56 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-10-10 13:56:56 +0000 |
| commit | 052a79386510e7300ea09507faf52a668bd903ad (patch) | |
| tree | 41fb2635a007eb2facd1addd82ef962adddbdd8e /lib/python/Screens/ParentalControlSetup.py | |
| parent | d29dad2c2d56f1664fd7bedf08b5e45ceb85d47c (diff) | |
| download | enigma2-052a79386510e7300ea09507faf52a668bd903ad.tar.gz enigma2-052a79386510e7300ea09507faf52a668bd903ad.zip | |
use service compare strings instead of eServiceReferences in parental control
Diffstat (limited to 'lib/python/Screens/ParentalControlSetup.py')
| -rw-r--r-- | lib/python/Screens/ParentalControlSetup.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Screens/ParentalControlSetup.py b/lib/python/Screens/ParentalControlSetup.py index 77d592d8..a8fdcc5f 100644 --- a/lib/python/Screens/ParentalControlSetup.py +++ b/lib/python/Screens/ParentalControlSetup.py @@ -170,9 +170,9 @@ class ParentalControlEditor(Screen): list = serviceHandler.list(self.root) if list is not None: - services = list.getContent("CRN", True) #(servicecomparestring, eServiceRef, name) + services = list.getContent("CN", True) #(servicecomparestring, name) for s in services: - key = s[2].lower()[0] + key = s[1].lower()[0] if key < 'a' or key > 'z': key = '&' #key = str(key) @@ -201,7 +201,7 @@ class ParentalControlEditor(Screen): self.currentLetter = result[1] self.list = [] for x in self.servicesList[result[1]]: - self.list.append(ParentalControlEntryComponent(x[1], x[2], parentalControl.getProtectionLevel(x[1]) != -1)) + self.list.append(ParentalControlEntryComponent(x[0], x[1], parentalControl.getProtectionLevel(x[0]) != -1)) self.servicelist.setList(self.list) class ParentalControlChangePin(Screen, ConfigListScreen, ProtectedScreen): |
