7 manager = dbus.Interface(bus.get_object('org.ofono', '/'),
10 modems = manager.GetModems()
12 for path, properties in modems:
13 print "[ %s ]" % (path)
15 if "org.ofono.MessageManager" not in properties["Interfaces"]:
18 connman = dbus.Interface(bus.get_object('org.ofono', path),
19 'org.ofono.MessageManager')
21 contexts = connman.GetMessages()
23 for path, properties in contexts:
24 print " [ %s ]" % (path)
26 for key in properties.keys():
27 val = str(properties[key])
28 print " %s = %s" % (key, val)