comparison src/bridge/DBus.py @ 2013:b536dd121da1

backend (memory), frontends: improved history filtering: a "filters" dictionnary is now use to filter, it can have, for now, filtering on: - "body": filter only on the body (equivalent to former "search" parameter, but not case sensitive) - "search": fitler on body + source resource - "types": allowed types - "not_types": forbidden types primitivus now do searching using "search", i.e. source resource is now taken into account (and search is now case insensitive)
author Goffi <goffi@goffi.org>
date Mon, 18 Jul 2016 00:52:02 +0200
parents a2bc5089c2eb
children 046449cc2bff
comparison
equal deleted inserted replaced
2012:53587e738aca 2013:b536dd121da1
397 async_callbacks=None) 397 async_callbacks=None)
398 def getWaitingSub(self, profile_key="@DEFAULT@"): 398 def getWaitingSub(self, profile_key="@DEFAULT@"):
399 return self._callback("getWaitingSub", unicode(profile_key)) 399 return self._callback("getWaitingSub", unicode(profile_key))
400 400
401 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 401 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
402 in_signature='ssibss', out_signature='a(sdssa{ss}a{ss}sa{ss})', 402 in_signature='ssiba{ss}s', out_signature='a(sdssa{ss}a{ss}sa{ss})',
403 async_callbacks=('callback', 'errback')) 403 async_callbacks=('callback', 'errback'))
404 def historyGet(self, from_jid, to_jid, limit, between=True, search='', profile="@NONE@", callback=None, errback=None): 404 def historyGet(self, from_jid, to_jid, limit, between=True, filters='', profile="@NONE@", callback=None, errback=None):
405 return self._callback("historyGet", unicode(from_jid), unicode(to_jid), limit, between, unicode(search), unicode(profile), callback=callback, errback=errback) 405 return self._callback("historyGet", unicode(from_jid), unicode(to_jid), limit, between, filters, unicode(profile), callback=callback, errback=errback)
406 406
407 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 407 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
408 in_signature='s', out_signature='b', 408 in_signature='s', out_signature='b',
409 async_callbacks=None) 409 async_callbacks=None)
410 def isConnected(self, profile_key="@DEFAULT@"): 410 def isConnected(self, profile_key="@DEFAULT@"):