Mercurial > libervia-backend
comparison sat/bridge/dbus_bridge.py @ 3170:39d7327583e1
core: use serialised dict for `extra` in messageNew and historyGet
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 18 Feb 2020 18:13:17 +0100 |
parents | d10b2368684e |
children | 84a94b385760 |
comparison
equal
deleted
inserted
replaced
3169:560642ab1c10 | 3170:39d7327583e1 |
---|---|
173 signature='sa{ss}s') | 173 signature='sa{ss}s') |
174 def messageEncryptionStopped(self, to_jid, encryption_data, profile_key): | 174 def messageEncryptionStopped(self, to_jid, encryption_data, profile_key): |
175 pass | 175 pass |
176 | 176 |
177 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX, | 177 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX, |
178 signature='sdssa{ss}a{ss}sa{ss}s') | 178 signature='sdssa{ss}a{ss}sss') |
179 def messageNew(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile): | 179 def messageNew(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile): |
180 pass | 180 pass |
181 | 181 |
182 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX, | 182 @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX, |
183 signature='sa{ss}ass') | 183 signature='sa{ss}ass') |
383 async_callbacks=None) | 383 async_callbacks=None) |
384 def getWaitingSub(self, profile_key="@DEFAULT@"): | 384 def getWaitingSub(self, profile_key="@DEFAULT@"): |
385 return self._callback("getWaitingSub", str(profile_key)) | 385 return self._callback("getWaitingSub", str(profile_key)) |
386 | 386 |
387 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 387 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |
388 in_signature='ssiba{ss}s', out_signature='a(sdssa{ss}a{ss}sa{ss})', | 388 in_signature='ssiba{ss}s', out_signature='a(sdssa{ss}a{ss}ss)', |
389 async_callbacks=('callback', 'errback')) | 389 async_callbacks=('callback', 'errback')) |
390 def historyGet(self, from_jid, to_jid, limit, between=True, filters='', profile="@NONE@", callback=None, errback=None): | 390 def historyGet(self, from_jid, to_jid, limit, between=True, filters='', profile="@NONE@", callback=None, errback=None): |
391 return self._callback("historyGet", str(from_jid), str(to_jid), limit, between, filters, str(profile), callback=callback, errback=errback) | 391 return self._callback("historyGet", str(from_jid), str(to_jid), limit, between, filters, str(profile), callback=callback, errback=errback) |
392 | 392 |
393 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, | 393 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, |