aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/config.py
diff options
context:
space:
mode:
authorRonny Strutz <ronny.strutz@multimedia-labs.de>2005-11-15 15:04:27 +0000
committerRonny Strutz <ronny.strutz@multimedia-labs.de>2005-11-15 15:04:27 +0000
commit0b2f8b048708956fa9dcaf3c96e715faf406398a (patch)
tree15da855bc7ec3a6991a4b1f303f92fe0ae43d84c /lib/python/Components/config.py
parent71f41aef9e77a7293841fb264225de305d2da8b4 (diff)
downloadenigma2-0b2f8b048708956fa9dcaf3c96e715faf406398a.tar.gz
enigma2-0b2f8b048708956fa9dcaf3c96e715faf406398a.zip
fix text in config
Diffstat (limited to 'lib/python/Components/config.py')
-rw-r--r--lib/python/Components/config.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index c433f01b..1ffea0aa 100644
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -25,7 +25,7 @@ class configFile:
def addElement(self, line):
x = line.find("=")
if x > -1:
- self.configElements[line[:x]] = line[x + 1:]
+ self.configElements[line[:x]] = line[x + 1:-1]
def getKey(self, key):
return self.configElements[key]
@@ -43,7 +43,7 @@ class configFile:
keys = self.configElements.keys()
keys.sort()
for x in keys:
- wstr = x + "=" + self.configElements[x]
+ wstr = x + "=" + self.configElements[x] + "\n"
if wstr[len(wstr) - 1] != '\n':
wstr = wstr + "\n"
@@ -441,6 +441,7 @@ class configElement:
return ""
def loadData(self):
+ #print "load:" + self.configPath
try:
value = self.datafromFile(self.controlType, configfile.getKey(self.configPath))
except:
@@ -456,6 +457,7 @@ class configElement:
self.save() #add missing value to dict
else:
+ #print "set val:" + str(value)
self.value = value
#is this right? activate settings after load/cancel and use default