aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-10-10 13:56:56 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-10-10 13:56:56 +0000
commit052a79386510e7300ea09507faf52a668bd903ad (patch)
tree41fb2635a007eb2facd1addd82ef962adddbdd8e /lib/python/Components
parentd29dad2c2d56f1664fd7bedf08b5e45ceb85d47c (diff)
downloadenigma2-052a79386510e7300ea09507faf52a668bd903ad.tar.gz
enigma2-052a79386510e7300ea09507faf52a668bd903ad.zip
use service compare strings instead of eServiceReferences in parental control
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/ParentalControl.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/python/Components/ParentalControl.py b/lib/python/Components/ParentalControl.py
index 97e9fad5..ac786fcd 100644
--- a/lib/python/Components/ParentalControl.py
+++ b/lib/python/Components/ParentalControl.py
@@ -92,16 +92,15 @@ class ParentalControl:
print "unprotect"
print "config.ParentalControl.type.value:", config.ParentalControl.type.value
if config.ParentalControl.type.value == "whitelist":
- if service.toCompareString() not in self.whitelist:
+ if service not in self.whitelist:
self.addWhitelistService(service)
else: # blacklist
- if service.toCompareString() in self.blacklist:
+ if service in self.blacklist:
self.deleteBlacklistService(service)
print "whitelist:", self.whitelist
print "blacklist:", self.blacklist
- def getProtectionLevel(self, serviceref):
- service = serviceref.toCompareString()
+ def getProtectionLevel(self, service):
if (config.ParentalControl.type.value == "whitelist" and service not in self.whitelist) or (config.ParentalControl.type.value == "blacklist" and service in self.blacklist):
if self.serviceLevel.has_key(service):
return self.serviceLevel[service]