From ba6db3af42efe2bcd85df536d1290487f9243d25 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 9 Sep 2010 14:37:37 -0500 Subject: test: Update to the new Manager api --- test/list-operators | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'test/list-operators') diff --git a/test/list-operators b/test/list-operators index c29ab028..be00c5ba 100755 --- a/test/list-operators +++ b/test/list-operators @@ -8,14 +8,9 @@ bus = dbus.SystemBus() manager = dbus.Interface(bus.get_object('org.ofono', '/'), 'org.ofono.Manager') -properties = manager.GetProperties() - -for path in properties["Modems"]: - modem = dbus.Interface(bus.get_object('org.ofono', path), - 'org.ofono.Modem') - - properties = modem.GetProperties() +modems = manager.GetModems() +for path, properties in modems: print "[ %s ]" % (path) if "org.ofono.NetworkRegistration" not in properties["Interfaces"]: -- cgit v1.2.3