From: ghost Date: Mon, 19 Jan 2009 20:02:12 +0000 (+0100) Subject: allow non string choices in ConfigSelection X-Git-Tag: 2.6.0~480^2~15 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/6f281bfa8fb9eccc5e623b67c39f5b9e478eeeb0 allow non string choices in ConfigSelection --- diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 1efb8a56..a7724f40 100755 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -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: