Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 4/4] test: Add a script to set the delivery-report flag
Date: Tue, 07 Aug 2012 02:22:58 -0500	[thread overview]
Message-ID: <5020C252.6000800@gmail.com> (raw)
In-Reply-To: <1344267060-5541-5-git-send-email-ronald.tessier@linux.intel.com>

[-- Attachment #1: Type: text/plain, Size: 1172 bytes --]

Hi Ronald,

On 08/06/2012 10:31 AM, Ronald Tessier wrote:
> ---
>   test/set-dr |   25 +++++++++++++++++++++++++
>   1 file changed, 25 insertions(+)
>   create mode 100755 test/set-dr
>

Add this to Makefile.am as well.

> diff --git a/test/set-dr b/test/set-dr
> new file mode 100755
> index 0000000..99c72b1
> --- /dev/null
> +++ b/test/set-dr
> @@ -0,0 +1,25 @@
> +#!/usr/bin/python
> +
> +import sys
> +import dbus
> +
> +bus = dbus.SessionBus()
> +
> +manager = dbus.Interface(bus.get_object('org.ofono.mms', '/org/ofono/mms'),
> +					'org.ofono.mms.Manager')
> +
> +services = manager.GetServices()
> +path = services[0][0]
> +
> +service = dbus.Interface(bus.get_object('org.ofono.mms', path),
> +						'org.ofono.mms.Service')
> +
> +if len(sys.argv)>  1:
> +	allowed = dbus.Boolean(int(sys.argv[1]))
> +else:
> +	allowed = dbus.Boolean(1)
> +
> +service.SetProperty("UseDeliveryReports", allowed)
> +
> +print "Setting delivery report use for %s...(UseDeliveryReports=%d)" %\
> +	(path, allowed)

Should this be printed prior to calling SetProperty?  Otherwise it 
should be 'Set' not 'Setting'.

Regards,
-Denis

  reply	other threads:[~2012-08-07  7:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-06 15:30 [PATCH 0/4] mmsd: delivery-report flag Ronald Tessier
2012-08-06 15:30 ` [PATCH 1/4] store: Add utilities for mms settings file access Ronald Tessier
2012-08-07  7:17   ` Denis Kenzior
2012-08-06 15:30 ` [PATCH 2/4] service: Load delivery-report from mms settings Ronald Tessier
2012-08-07  7:18   ` Denis Kenzior
2012-08-06 15:30 ` [PATCH 3/4] service: Add DBus method to set delivery-report Ronald Tessier
2012-08-07  7:21   ` Denis Kenzior
2012-08-06 15:31 ` [PATCH 4/4] test: Add a script to set the delivery-report flag Ronald Tessier
2012-08-07  7:22   ` Denis Kenzior [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-07-23 14:18 [PATCH 0/4] mmsd: " Ronald Tessier
2012-07-23 14:18 ` [PATCH 4/4] test: Add a script to set the " Ronald Tessier

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=5020C252.6000800@gmail.com \
    --to=denkenz@gmail.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