mirror of git://git.sysmocom.de/ofono
Decode the settings information of a context
This commit is contained in:
parent
640d2c95b9
commit
49203cce1b
|
@ -34,7 +34,14 @@ for path in properties["Modems"]:
|
||||||
print " [ %s ]" % (path)
|
print " [ %s ]" % (path)
|
||||||
|
|
||||||
for key in properties.keys():
|
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 " %s = %s" % (key, val)
|
||||||
|
|
||||||
print
|
print
|
||||||
|
|
Loading…
Reference in New Issue