convert parental black/whitelist to uppercase on file read
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 5 Feb 2007 21:40:12 +0000 (21:40 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 5 Feb 2007 21:40:12 +0000 (21:40 +0000)
lib/python/Components/ParentalControl.py

index 057537e..c323880 100644 (file)
@@ -153,7 +153,7 @@ class ParentalControl:
                        file = open(resolveFilename(SCOPE_CONFIG, "whitelist"), 'r')
                        lines = file.readlines()
                        for x in lines:
-                               self.whitelist.append(x.strip())
+                               self.whitelist.append(x.strip().upper())
                        file.close
                except:
                        pass
@@ -170,7 +170,7 @@ class ParentalControl:
                        file = open(resolveFilename(SCOPE_CONFIG, "blacklist"), 'r')
                        lines = file.readlines()
                        for x in lines:
-                               self.blacklist.append(x.strip())
+                               self.blacklist.append(x.strip().upper())
                        file.close
                except:
                        pass