core,bridge: sendMessage bridge method is now async

This commit is contained in:
Goffi 2013-12-17 01:46:45 +01:00
commit bc776be0f2
2 changed files with 11 additions and 8 deletions

View file

@ -391,9 +391,9 @@ class DbusObject(dbus.service.Object):
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
in_signature='ssssa{ss}s', out_signature='',
async_callbacks=None)
def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, profile_key="@NONE@"):
return self._callback("sendMessage", unicode(to_jid), unicode(message), unicode(subject), unicode(mess_type), extra, unicode(profile_key))
async_callbacks=('callback', 'errback'))
def sendMessage(self, to_jid, message, subject='', mess_type="auto", extra={}, profile_key="@NONE@", callback=None, errback=None):
return self._callback("sendMessage", unicode(to_jid), unicode(message), unicode(subject), unicode(mess_type), extra, unicode(profile_key), callback=callback, errback=errback)
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
in_signature='sssis', out_signature='',

View file

@ -342,6 +342,7 @@ doc_return=List of confirmation request data, same as for [askConfirmation]
[sendMessage]
async=
type=method
category=core
sig_in=ssssa{ss}s