Decode the settings information of a context
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 18 Nov 2009 21:37:46 +0000 (22:37 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 18 Nov 2009 21:37:46 +0000 (22:37 +0100)
test/list-contexts

index eb02416..e556ca8 100755 (executable)
@@ -34,7 +34,14 @@ for path in properties["Modems"]:
                print "    [ %s ]" % (path)
 
                for key in properties.keys():
-                       val = str(properties[key])
+                       if key in ["Settings"]:
+                               val = "{"
+                               for i in properties[key].keys():
+                                       val += " " + i + "="
+                                       val += properties[key][i]
+                               val += " }"
+                       else:
+                               val = str(properties[key])
                        print "        %s = %s" % (key, val)
        
                print