summaryrefslogtreecommitdiffstats
path: root/test/list-contexts
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-11-18 22:37:46 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-11-18 22:37:46 +0100
commit49203cce1bd14b92a11e8678a9d57072892b6ea7 (patch)
tree586b8376fca7028c27e07e56c23eaaaa1038dd20 /test/list-contexts
parent640d2c95b97a3c0f5dfa9f0393a2d8fefc6801cc (diff)
downloadofono-49203cce1bd14b92a11e8678a9d57072892b6ea7.tar.bz2
Decode the settings information of a context
Diffstat (limited to 'test/list-contexts')
-rwxr-xr-xtest/list-contexts9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/list-contexts b/test/list-contexts
index eb024161..e556ca8e 100755
--- a/test/list-contexts
+++ b/test/list-contexts
@@ -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