allow non string choices in ConfigSelection
authorghost <andreas.monzner@multimedia-labs.de>
Mon, 19 Jan 2009 20:02:12 +0000 (21:02 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Mon, 19 Jan 2009 20:02:12 +0000 (21:02 +0100)
lib/python/Components/config.py

index 1efb8a56f42b827e6e7631dc60f6fb82de6bd2a7..a7724f402a303e415f09cc6a91f67ca134f63294 100755 (executable)
@@ -183,9 +183,8 @@ class ConfigSelection(ConfigElement):
                        default = self.choices[0]
 
                assert default in self.choices, "default must be in choice list, but " + repr(default) + " is not!"
-               for x in self.choices:
-                       assert isinstance(x, str), "ConfigSelection choices must be strings"
-               
+#              for x in self.choices:
+#                      assert isinstance(x, str), "ConfigSelection choices must be strings"
                self.default = default
 
                if self.value == None or not self.value in self.choices: