diff 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
line wrap: on
line diff
--- a/sat/bridge/dbus_bridge.py	Fri Feb 14 15:18:52 2020 +0100
+++ b/sat/bridge/dbus_bridge.py	Tue Feb 18 18:13:17 2020 +0100
@@ -175,7 +175,7 @@
         pass
 
     @dbus.service.signal(const_INT_PREFIX+const_CORE_SUFFIX,
-                         signature='sdssa{ss}a{ss}sa{ss}s')
+                         signature='sdssa{ss}a{ss}sss')
     def messageNew(self, uid, timestamp, from_jid, to_jid, message, subject, mess_type, extra, profile):
         pass
 
@@ -385,7 +385,7 @@
         return self._callback("getWaitingSub", str(profile_key))
 
     @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
-                         in_signature='ssiba{ss}s', out_signature='a(sdssa{ss}a{ss}sa{ss})',
+                         in_signature='ssiba{ss}s', out_signature='a(sdssa{ss}a{ss}ss)',
                          async_callbacks=('callback', 'errback'))
     def historyGet(self, from_jid, to_jid, limit, between=True, filters='', profile="@NONE@", callback=None, errback=None):
         return self._callback("historyGet", str(from_jid), str(to_jid), limit, between, filters, str(profile), callback=callback, errback=errback)