From fb2b15855639ce9f5259509ea3ddaba2ce491678 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 19 Aug 2010 13:25:51 -0500 Subject: test: update remove-contexts to the new API --- test/remove-contexts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/remove-contexts') diff --git a/test/remove-contexts b/test/remove-contexts index 181c6fcd..53999136 100755 --- a/test/remove-contexts +++ b/test/remove-contexts @@ -15,14 +15,14 @@ for path in properties["Modems"]: properties = modem.GetProperties() - if "org.ofono.DataConnectionManager" not in properties["Interfaces"]: + if "org.ofono.ConnectionManager" not in properties["Interfaces"]: continue - connmgr = dbus.Interface(bus.get_object('org.ofono', path), - 'org.ofono.DataConnectionManager') + connman = dbus.Interface(bus.get_object('org.ofono', path), + 'org.ofono.ConnectionManager') - properties = connmgr.GetProperties() + contexts = connman.GetContexts() - for path in properties["PrimaryContexts"]: - connmgr.RemoveContext(path) + for path, properties in contexts: + connman.RemoveContext(path) print"Removed: [ %s ]" % (path) -- cgit v1.2.3