diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-11-18 22:37:46 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-11-18 22:37:46 +0100 |
commit | 49203cce1bd14b92a11e8678a9d57072892b6ea7 (patch) | |
tree | 586b8376fca7028c27e07e56c23eaaaa1038dd20 /test/list-contexts | |
parent | 640d2c95b97a3c0f5dfa9f0393a2d8fefc6801cc (diff) | |
download | ofono-49203cce1bd14b92a11e8678a9d57072892b6ea7.tar.bz2 |
Decode the settings information of a context
Diffstat (limited to 'test/list-contexts')
-rwxr-xr-x | test/list-contexts | 9 |
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 |