summaryrefslogtreecommitdiffstats
path: root/test/list-modems
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-09-09 14:37:37 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-09-09 14:38:14 -0500
commitba6db3af42efe2bcd85df536d1290487f9243d25 (patch)
treeea8b18188afaebe8c53a0b8811ef84886ba2abec /test/list-modems
parentb24439ed7b21bafa8d8226d43cec92ecdcb79cc8 (diff)
downloadofono-ba6db3af42efe2bcd85df536d1290487f9243d25.tar.bz2
test: Update to the new Manager api
Diffstat (limited to 'test/list-modems')
-rwxr-xr-xtest/list-modems11
1 files changed, 3 insertions, 8 deletions
diff --git a/test/list-modems b/test/list-modems
index e1029542..557efd52 100755
--- a/test/list-modems
+++ b/test/list-modems
@@ -7,14 +7,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)
for key in properties.keys():
@@ -64,5 +59,5 @@ for path in properties["Modems"]:
else:
val = str(properties[key])
print " %s = %s" % (key, val)
-
+
print