can't pass empty array for type "as" in pyhon D-Bus binding

Andrey Borzenkov arvidjaar at mail.ru
Tue Jun 27 13:00:10 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

i.e. in Umount method:

 dev.Unmount([])

results in

{pts/1}% 
hal-mount -h /org/freedesktop/Hal/devices/volume_label_SU10042A_001 -u
Traceback (most recent call last):
  File "/home/bor/bin/hal-mount", line 26, in ?
    dev.Unmount([])
  File "/usr/lib/python2.4/site-packages/dbus/proxies.py", line 25, in 
__call__
    ret = self._proxy_method (*args, **keywords)
  File "/usr/lib/python2.4/site-packages/dbus/proxies.py", line 93, in 
__call__
    iter.append(arg)
  File "dbus_bindings.pyx", line 1081, in dbus_bindings.MessageIter.append
  File "dbus_bindings.pyx", line 1305, in 
dbus_bindings.MessageIter.append_array
IndexError: list index out of range

while adding empty string to sequence works (dev.Umount([""])). Still looking 
at C bindings, NULL is legal here?

- -andrey 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEoY5OR6LMutpd94wRAgL2AJ0eU+Cc2yO1wVKNYypj2fCaNIhchgCgiA6l
ZiJqvIM88CA7lQUGgf2YU1c=
=1p2T
-----END PGP SIGNATURE-----


More information about the hal mailing list