initalize parental control after bouquet load
authorghost <andreas.monzner@multimedia-labs.de>
Sat, 30 Oct 2010 14:24:15 +0000 (16:24 +0200)
committerghost <andreas.monzner@multimedia-labs.de>
Sat, 30 Oct 2010 14:24:15 +0000 (16:24 +0200)
fixes bug #607

lib/python/Components/ParentalControl.py

index 63b5ccf..d320c9c 100644 (file)
@@ -20,7 +20,11 @@ IMG_WHITEBOUQUET = LIST_WHITELIST + "-" + TYPE_BOUQUET
 IMG_BLACKSERVICE = LIST_BLACKLIST + "-" + TYPE_SERVICE
 IMG_BLACKBOUQUET = LIST_BLACKLIST + "-" + TYPE_BOUQUET
 
+parentalControl = None
+
 def InitParentalControl():
+       global parentalControl
+       parentalControl = ParentalControl()
        config.ParentalControl = ConfigSubsection()
        config.ParentalControl.configured = ConfigYesNo(default = False)
        config.ParentalControl.mode = ConfigSelection(default = "simple", choices = [("simple", _("simple")), ("complex", _("complex"))])
@@ -320,4 +324,3 @@ class ParentalControl:
                self.openListFromFile(LIST_BLACKLIST)
                self.openListFromFile(LIST_WHITELIST)
 
-parentalControl = ParentalControl()