Separate elements in device list
[connman] / test / test-manager
1 #!/usr/bin/python
2
3 import dbus
4
5 bus = dbus.SystemBus()
6
7 manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
8                                         "org.moblin.connman.Manager")
9
10 properties = manager.GetProperties()
11
12 def print_list(key, value):
13         text = ""
14         for path in value:
15                 text = text + str(path) + " "
16         print "%s = %s" % (key, text)
17
18 for key in properties.keys():
19         if (key in ["Profiles", "Devices", "Connections"]):
20                 print_list(key, properties[key])
21         else:
22                 print "%s = %s" % (key, properties[key])