projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
640d2c9
)
Decode the settings information of a context
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 18 Nov 2009 21:37:46 +0000
(22:37 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 18 Nov 2009 21:37:46 +0000
(22:37 +0100)
test/list-contexts
patch
|
blob
|
history
diff --git
a/test/list-contexts
b/test/list-contexts
index
eb02416
..
e556ca8
100755
(executable)
--- 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