[oystein] fix dbus signature of gajim-remote list_contacts. fixes #3408

This commit is contained in:
Yann Leboulanger 2007-08-30 18:58:40 +00:00
parent 3f5387c02a
commit 07e52866d5

View file

@ -434,11 +434,11 @@ class SignalObject(dbus.service.Object):
'accounts', con.name, 'resource'))) 'accounts', con.name, 'resource')))
return result return result
@dbus.service.method(INTERFACE, in_signature='s', out_signature='av') @dbus.service.method(INTERFACE, in_signature='s', out_signature='aa{sv}')
def list_contacts(self, account): def list_contacts(self, account):
'''list all contacts in the roster. If the first argument is specified, '''list all contacts in the roster. If the first argument is specified,
then return the contacts for the specified account''' then return the contacts for the specified account'''
result = dbus.Array([], signature='a{sv}') result = dbus.Array([], signature='aa{sv}')
accounts = gajim.contacts.get_accounts() accounts = gajim.contacts.get_accounts()
if len(accounts) == 0: if len(accounts) == 0:
return result return result