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/set-cbs-topics | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/set-cbs-topics') diff --git a/test/set-cbs-topics b/test/set-cbs-topics index ff56e75d..fbf7aa42 100755 --- a/test/set-cbs-topics +++ b/test/set-cbs-topics @@ -10,15 +10,15 @@ if len(sys.argv) == 3: topics = sys.argv[2] elif len(sys.argv) == 2: manager = dbus.Interface(bus.get_object('org.ofono', '/'), - 'org.ofono.Manager') - properties = manager.GetProperties() - path = properties["Modems"][0] + 'org.ofono.Manager') + modems = manager.GetModems() + path = modems[0][0] topics = sys.argv[1] else: print "%s [PATH] topics" % (sys.argv[0]) print "Setting cell broadcast topics for modem %s..." % path cbs = dbus.Interface(bus.get_object('org.ofono', path), - 'org.ofono.CellBroadcast') + 'org.ofono.CellBroadcast') cbs.SetProperty("Topics", topics); -- cgit v1.2.3