fixes bug #381
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 1 Mar 2010 00:47:26 +0000 (01:47 +0100)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 1 Mar 2010 01:14:11 +0000 (02:14 +0100)
some small fixes for the parental control functions

lib/python/Components/ParentalControl.py
lib/python/Screens/ParentalControlSetup.py

index 4830d20a95f18f52b96a0bec54dfa19285f94b4b..9942bca7a0e63a2ab97b560dd29829ec2a12b137 100644 (file)
@@ -318,6 +318,9 @@ class ParentalControl:
                        return services
                
        def save(self):
                        return services
                
        def save(self):
+               # we need to open the files in case we havent's read them yet
+               if not self.filesOpened:
+                       self.open()
                self.saveListToFile(LIST_BLACKLIST)
                self.saveListToFile(LIST_WHITELIST)
                
                self.saveListToFile(LIST_BLACKLIST)
                self.saveListToFile(LIST_WHITELIST)
                
index 2bf4841e25efde3bdb2f229c5cc1635cb536d78e..eae12da4a2827e344abc89b1658b4b8e7a1a0604 100644 (file)
@@ -72,6 +72,8 @@ class ParentalControlSetup(Screen, ConfigListScreen, ProtectedScreen):
                self.list = []
                self.list.append(getConfigListEntry(_("Enable parental control"), config.ParentalControl.configured))
                print "config.ParentalControl.configured.value", config.ParentalControl.configured.value
                self.list = []
                self.list.append(getConfigListEntry(_("Enable parental control"), config.ParentalControl.configured))
                print "config.ParentalControl.configured.value", config.ParentalControl.configured.value
+               self.editBouquetListEntry = -1
+               self.reloadLists = -1
                if config.ParentalControl.configured.value:
                        #self.list.append(getConfigListEntry(_("Configuration mode"), config.ParentalControl.mode))
                        self.list.append(getConfigListEntry(_("Protect setup"), config.ParentalControl.setuppinactive))
                if config.ParentalControl.configured.value:
                        #self.list.append(getConfigListEntry(_("Configuration mode"), config.ParentalControl.mode))
                        self.list.append(getConfigListEntry(_("Protect setup"), config.ParentalControl.setuppinactive))