From: Marcel Holtmann Date: Sun, 23 Nov 2008 14:08:37 +0000 (+0100) Subject: Add test script for showing connection details X-Git-Tag: 0.1~81 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=1fed4a5ebc54427591c7f7eadee8d5b900c1d8fc;hp=3b665a3511198458b350528d800c5a8e875e586b;p=connman Add test script for showing connection details --- diff --git a/test/list-connections b/test/list-connections new file mode 100755 index 0000000..806490d --- /dev/null +++ b/test/list-connections @@ -0,0 +1,23 @@ +#!/usr/bin/python + +import dbus + +bus = dbus.SystemBus() + +manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"), + "org.moblin.connman.Manager") + +properties = manager.GetProperties() + +for path in properties["Connections"]: + connection = dbus.Interface(bus.get_object("org.moblin.connman", path), + "org.moblin.connman.Connection") + + properties = connection.GetProperties() + + print "[ %s ]" % (path) + + for key in properties.keys(): + print " %s = %s" % (key, properties[key]) + + print