Add some extra pretty decoding to monitor script

This commit is contained in:
Marcel Holtmann 2009-11-18 22:37:25 +01:00
parent fa3fa12403
commit 640d2c95b9
1 changed files with 9 additions and 1 deletions

View File

@ -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: