Mercurial > libervia-backend
diff src/bridge/DBus.py @ 1224:f0c9b149ed99
bridge, memory: add "search" attribute to getHistory (filter the results with a unix globbing pattern)
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 04 Oct 2014 10:25:32 +0200 |
parents | f094583732de |
children | f8a8434dbac7 |
line wrap: on
line diff
--- a/src/bridge/DBus.py Sat Oct 04 10:23:13 2014 +0200 +++ b/src/bridge/DBus.py Sat Oct 04 10:25:32 2014 +0200 @@ -277,10 +277,10 @@ return self._callback("getEntityData", unicode(jid), keys, unicode(profile)) @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, - in_signature='ssibs', out_signature='a(dssssa{ss})', + in_signature='ssibss', out_signature='a(dssssa{ss})', async_callbacks=('callback', 'errback')) - def getHistory(self, from_jid, to_jid, limit, between=True, profile="@NONE@", callback=None, errback=None): - return self._callback("getHistory", unicode(from_jid), unicode(to_jid), limit, between, unicode(profile), callback=callback, errback=errback) + def getHistory(self, from_jid, to_jid, limit, between=True, search='', profile="@NONE@", callback=None, errback=None): + return self._callback("getHistory", unicode(from_jid), unicode(to_jid), limit, between, unicode(search), unicode(profile), callback=callback, errback=errback) @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, in_signature='ss', out_signature='s',