From bbfb870a641df0013df87248bdb74788c199725d Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Sun, 26 Feb 2012 13:01:37 +0100 Subject: list-services: Use GetServices() instead GetProperties() GetProperties() does not return the services path anymore. Instead the GetServices() method should be used. --- test/list-services | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'test') diff --git a/test/list-services b/test/list-services index c403f858..be447b8d 100755 --- a/test/list-services +++ b/test/list-services @@ -28,14 +28,9 @@ bus = dbus.SystemBus() manager = dbus.Interface(bus.get_object("net.connman", "/"), "net.connman.Manager") -properties = manager.GetProperties() - -for path in properties["Services"]: +for path, properties in manager.GetServices(): service = dbus.Interface(bus.get_object("net.connman", path), "net.connman.Service") - - properties = service.GetProperties() - print "[ %s ]" % (path) for key in properties.keys(): -- cgit v1.2.3