method execution on d-feet

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Dec 16 03:06:59 PST 2011


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


More information about the dbus mailing list