diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-01-19 21:02:12 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-01-19 21:02:12 +0100 |
| commit | 6f281bfa8fb9eccc5e623b67c39f5b9e478eeeb0 (patch) | |
| tree | 4676dde8514da18b1c6617ad9047404bd52fa614 /lib/python/Components | |
| parent | c668e555f7f57a878b8295abfeeb87d0f4550fbd (diff) | |
| download | enigma2-6f281bfa8fb9eccc5e623b67c39f5b9e478eeeb0.tar.gz enigma2-6f281bfa8fb9eccc5e623b67c39f5b9e478eeeb0.zip | |
allow non string choices in ConfigSelection
Diffstat (limited to 'lib/python/Components')
| -rwxr-xr-x | lib/python/Components/config.py | 5 |
1 files changed, 2 insertions, 3 deletions
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: |
