diff options
| author | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-09-02 12:24:58 +0000 |
|---|---|---|
| committer | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-09-02 12:24:58 +0000 |
| commit | a0d13ab5a83d571b717120ef81f6c381dd1a3566 (patch) | |
| tree | 73921031793b8014b879c8b451f2553a0a156093 /lib/python/Components | |
| parent | d0a28c9837f9ffac259d16db3703b2e74195ccad (diff) | |
| download | enigma2-a0d13ab5a83d571b717120ef81f6c381dd1a3566.tar.gz enigma2-a0d13ab5a83d571b717120ef81f6c381dd1a3566.zip | |
add load/save for configSequence
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/config.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 14c03655..237e0bf8 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -109,8 +109,8 @@ class configSequence: def __call__(self): #needed by configlist value = "" for i in self.parent.value: - if (value != ""): - value += self.parent.vals[0] + if value != "": + value += self.parent.vals value += str(i) return ("text", value) @@ -170,6 +170,12 @@ class configElement: return int(data); elif control == configBoolean: return int(data); + elif control == configSequence: + list = [ ] + part = data.split(self.vals) + for x in part: + list.append(int(x)) + return list else: return "" @@ -178,6 +184,13 @@ class configElement: return str(data); elif control == configBoolean: return str(data); + elif control == configSequence: + value = "" + for i in data: + if value !="": + value += self.vals + value += str(i) + return value else: return "" |
