dbus python - Returning empty lists
simon.mcvittie at collabora.co.uk
Wed May 16 12:15:55 PDT 2007
On Wed, 16 May 2007 at 17:29:32 +0300, Eyal Ben David wrote:
> When I send an empty list the DBUS implementation can't handle the empty
> python list and emits an error.
You either need to mark your method's output signature in the @method
or indicate the desired signature by returning an appropriate
dbus.Array (e.g. dbus.Array(, signature='s') if you want to return an
empty array of strings). dbus.Array is a subclass of list, so you can
append to it, etc. as usual.
More information about the dbus