diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-21 00:24:18 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-21 00:24:18 +0000 |
| commit | 19a5240f06c750794a9a8ab43a3124d569a89199 (patch) | |
| tree | 564afd99212de1fd06be6f460588d12a19a4f67d /lib/python | |
| parent | cbba2b5b39ab1d4e3cab9dd290dab02b3b735451 (diff) | |
| download | enigma2-19a5240f06c750794a9a8ab43a3124d569a89199.tar.gz enigma2-19a5240f06c750794a9a8ab43a3124d569a89199.zip | |
save configSequence floating point correctly
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/config.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 5a4ed12e..e1c0bf8a 100644 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -479,16 +479,20 @@ class configElement: return str(data.strip()) elif control == configSequence: + print self.vals + print self.value try: - value = ((len(data) * ("%d" + self.vals[0]))[0:-1]) % tuple(data) + value = "" + count = 0 + for i in data: + if value !="": + value += self.vals[0] + value += (("%0" + str(len(str(self.vals[1][count][1]))) + "d") % i) + count += 1 + #value = ((len(data) * ("%d" + self.vals[0]))[0:-1]) % tuple(data) except: value = str(data) -# just in case you don't understand the above, here an equivalent: -# value = "" -# for i in data: -# if value !="": -# value += self.vals[0] -# value += str(i) + return value elif control == configSatlist: return str(self.vals[self.value][1]); |
