From 640d2c95b97a3c0f5dfa9f0393a2d8fefc6801cc Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 18 Nov 2009 22:37:25 +0100 Subject: [PATCH] Add some extra pretty decoding to monitor script --- test/monitor-ofono | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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: