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 1ffea0a..19fdefe 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: