From: Ronny Strutz Date: Tue, 15 Nov 2005 15:04:27 +0000 (+0000) Subject: fix text in config X-Git-Tag: 2.6.0~5184 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/0b2f8b048708956fa9dcaf3c96e715faf406398a fix text in config --- 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