dbus-monitor actually showed the traceback that wouldn't appear
anywhere else.

Note to others: DBus.String needs to be converted using str()!
This commit is contained in:
js 2008-07-15 14:22:34 +00:00
parent 151e7af63e
commit cf2da2b039
1 changed files with 2 additions and 2 deletions

View File

@ -653,10 +653,10 @@ class SignalObject(dbus.service.Object):
@dbus.service.method(INTERFACE, in_signature='ss', out_signature='')
def send_xml(self, xml, account):
if account:
gajim.connections[account].send_stanza(xml)
gajim.connections[account].send_stanza(str(xml))
else:
for acc in gajim.contacts.get_accounts():
gajim.connections[acc].send_stanza(xml)
gajim.connections[acc].send_stanza(str(xml))
@dbus.service.method(INTERFACE, in_signature='ssss', out_signature='')
def join_room(self, room_jid, nick, password, account):