diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-11-18 22:37:25 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-11-18 22:37:25 +0100 |
commit | 640d2c95b97a3c0f5dfa9f0393a2d8fefc6801cc (patch) | |
tree | a94064a6d223f985d23283baa9748232eeb9f209 /test/monitor-ofono | |
parent | fa3fa124037b2e97966277786f3652f1f0c73d0f (diff) | |
download | ofono-640d2c95b97a3c0f5dfa9f0393a2d8fefc6801cc.tar.bz2 |
Add some extra pretty decoding to monitor script
Diffstat (limited to 'test/monitor-ofono')
-rwxr-xr-x | test/monitor-ofono | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/monitor-ofono b/test/monitor-ofono index 4f3c5a0f..86b81fc3 100755 --- a/test/monitor-ofono +++ b/test/monitor-ofono @@ -7,7 +7,15 @@ import dbus.mainloop.glib def property_changed(name, value, path, interface): iface = interface[interface.rfind(".") + 1:] - if name in ["MobileNetworkCodeLength", + if name in ["Modems", "Interfaces", + "Technologies", + "SubscriberNumbers", + "AvailableOperators", + "PreferredLanguages"]: + val = "" + for i in value: + val += i + " " + elif name in ["MobileNetworkCodeLength", "VoicemailMessageCount"]: val = int(value) else: |