윤민홍 | 16 Dec 04:30 2011
Picon
Picon

method execution on d-feet

Dear colleagues,

 

I am trying to execute methods using d-feet.

I succeeded to execute methods with some parameters. I could send String and Uint32 parameters.

However I could not find any way to execute methods with an “Object Path” parameter.

 

In the following parameter example on d-feet, I should send the second thing as an object path, not a string.

{'peer_object': '/fi/w1/wpa_supplicant1/Interfaces/0/Peers/020000000100'}

 

Please let me know how to use “Object Path” parameter in d-feet.

 

Thanks in advance

 

Minhong Yun

------------------------------------------------------

Software Research Laboratory, ETRI

Tel: +82-42-860-6394 / Fax: +82-42-860-6671

Minhong Yun

 

_______________________________________________
dbus mailing list
dbus@...
http://lists.freedesktop.org/mailman/listinfo/dbus
Simon McVittie | 16 Dec 12:06 2011
Picon

Re: method execution on d-feet

On Fri, 16 Dec 2011 at 12:30:35 +0900, ����ȫ wrote:
> However I could not find any way to execute methods with an Object Path parameter.

It uses dbus-python syntax and appears to evaluate the parameters in an
environment where most of the types from the dbus module have been imported,
so:

    ObjectPath('/fi/w1/...')

See dbus-python documentation for more types. If you encounter a type
that's supported by dbus-python but not by d-feet (like ByteArray), it turns
out the "execute method" window evaluates an arbitrary Python expression, so
you can use a hack like this:

    __import__('dbus').ByteArray('xyz')

Regards,
    S
_______________________________________________
dbus mailing list
dbus@...
http://lists.freedesktop.org/mailman/listinfo/dbus

Gmane