diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-08-19 13:25:51 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-08-19 14:20:07 -0500 |
commit | fb2b15855639ce9f5259509ea3ddaba2ce491678 (patch) | |
tree | 8d628b2659d0fbd5b13d6bff5f8367b9e9c31155 /test/remove-contexts | |
parent | 37ac1c719603ba744e05f1b1897b07f11906e347 (diff) | |
download | ofono-fb2b15855639ce9f5259509ea3ddaba2ce491678.tar.bz2 |
test: update remove-contexts to the new API
Diffstat (limited to 'test/remove-contexts')
-rwxr-xr-x | test/remove-contexts | 12 |
1 files changed, 6 insertions, 6 deletions
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) |