From: Ronald Tessier <ronald.tessier@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH] test: Add test script to list services properties
Date: Fri, 10 Aug 2012 17:16:14 +0200 [thread overview]
Message-ID: <1344611774-20156-2-git-send-email-ronald.tessier@linux.intel.com> (raw)
In-Reply-To: <1344611774-20156-1-git-send-email-ronald.tessier@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 894 bytes --]
---
test/list-services | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100755 test/list-services
diff --git a/test/list-services b/test/list-services
new file mode 100755
index 0000000..bd52d71
--- /dev/null
+++ b/test/list-services
@@ -0,0 +1,27 @@
+#!/usr/bin/python
+
+import dbus
+
+bus = dbus.SessionBus()
+
+manager = dbus.Interface(bus.get_object('org.ofono.mms', '/org/ofono/mms'),
+ 'org.ofono.mms.Manager')
+
+services = manager.GetServices()
+
+for path, properties in services:
+ print "[ %s ]" % (path)
+
+ object = dbus.Interface(bus.get_object('org.ofono.mms', path),
+ 'org.ofono.mms.Service')
+
+ try:
+ properties = object.GetProperties()
+ except:
+ continue
+
+ for key in properties.keys():
+ val = str(properties[key])
+ print " %s = %s" % (key, val)
+
+ print
--
1.7.9.5
next prev parent reply other threads:[~2012-08-10 15:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-10 15:16 [PATCH] mmsd: Add list-services script Ronald Tessier
2012-08-10 15:16 ` Ronald Tessier [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-08-24 12:58 [PATCH] mmsd: (resending) " Ronald Tessier
2012-08-24 12:58 ` [PATCH] test: Add test script to list services properties Ronald Tessier
2012-08-24 15:54 ` Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1344611774-20156-2-git-send-email-ronald.tessier@linux.intel.com \
--to=ronald.tessier@linux.intel.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox