Mercurial > libervia-backend
diff src/bridge/dbus_bridge.py @ 2150:91347fe95384
core(memory.disco), bridge: discoInfos and discoItems now handle node
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 12 Feb 2017 21:17:56 +0100 |
parents | 1bb9bf1b4150 |
children | 255830fdb80b |
line wrap: on
line diff
--- a/src/bridge/dbus_bridge.py Sun Feb 12 21:17:56 2017 +0100 +++ b/src/bridge/dbus_bridge.py Sun Feb 12 21:17:56 2017 +0100 @@ -234,16 +234,16 @@ return self._callback("delContact", unicode(entity_jid), unicode(profile_key), callback=callback, errback=errback) @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, - in_signature='ss', out_signature='(asa(sss)a{sa(a{ss}as)})', + in_signature='sss', out_signature='(asa(sss)a{sa(a{ss}as)})', async_callbacks=('callback', 'errback')) - def discoInfos(self, entity_jid, profile_key, callback=None, errback=None): - return self._callback("discoInfos", unicode(entity_jid), unicode(profile_key), callback=callback, errback=errback) + def discoInfos(self, entity_jid, node=u'', profile_key=u"@DEFAULT@", callback=None, errback=None): + return self._callback("discoInfos", unicode(entity_jid), unicode(node), unicode(profile_key), callback=callback, errback=errback) @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, - in_signature='ss', out_signature='a(sss)', + in_signature='sss', out_signature='a(sss)', async_callbacks=('callback', 'errback')) - def discoItems(self, entity_jid, profile_key, callback=None, errback=None): - return self._callback("discoItems", unicode(entity_jid), unicode(profile_key), callback=callback, errback=errback) + def discoItems(self, entity_jid, node=u'', profile_key=u"@DEFAULT@", callback=None, errback=None): + return self._callback("discoItems", unicode(entity_jid), unicode(node), unicode(profile_key), callback=callback, errback=errback) @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, in_signature='s', out_signature='',