save simple integers too
authorRonny Strutz <ronny.strutz@multimedia-labs.de>
Tue, 15 Nov 2005 16:45:51 +0000 (16:45 +0000)
committerRonny Strutz <ronny.strutz@multimedia-labs.de>
Tue, 15 Nov 2005 16:45:51 +0000 (16:45 +0000)
lib/python/Components/config.py

index 1ffea0aa562169768f815df172c62dc5d2e81a3e..19fdefeee5a52311d0c8bbdd5f3ad11f548ff2e5 100644 (file)
@@ -427,7 +427,11 @@ class configElement:
                        return str(data.strip())
 
                elif control == configSequence:
-                       value = ((len(data) * ("%d" + self.vals[0]))[0:-1]) % tuple(data)
+                       print data
+                       try:
+                               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: