fix signatures in remote control. fixes #2865

This commit is contained in:
Yann Leboulanger 2007-01-21 18:13:23 +00:00
parent 34da018faf
commit 5f797834ae

View file

@ -394,11 +394,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='a{ss}') @dbus.service.method(INTERFACE, in_signature='s', out_signature='av')
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='s') result = dbus.Array([], signature='a{sv}')
accounts = gajim.contacts.get_accounts() accounts = gajim.contacts.get_accounts()
if len(accounts) == 0: if len(accounts) == 0:
return result return result