comparison src/bridge/DBus.py @ 448:17c7e48bf68f

core: - history management improved - better timestamp precision for history bridge + core: history signature change (now return a list instead of a dict, and timestamp is now float) quick_frontend: - use of new history API - removed deprecated keep_last argument in getHistory (was only used by Sortilège)
author Goffi <goffi@goffi.org>
date Sun, 04 Dec 2011 16:18:56 +0100
parents e4e9187e3b5b
children cf005701624b
comparison
equal deleted inserted replaced
447:485a6d125498 448:17c7e48bf68f
250 async_callbacks=None) 250 async_callbacks=None)
251 def getContacts(self, profile_key="@DEFAULT@"): 251 def getContacts(self, profile_key="@DEFAULT@"):
252 return self._callback("getContacts", unicode(profile_key)) 252 return self._callback("getContacts", unicode(profile_key))
253 253
254 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 254 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
255 in_signature='ssib', out_signature='a{i(sss)}', 255 in_signature='ssib', out_signature='a(dsss)',
256 async_callbacks=('callback', 'errback')) 256 async_callbacks=('callback', 'errback'))
257 def getHistory(self, from_jid, to_jid, limit, between=True, callback=None, errback=None): 257 def getHistory(self, from_jid, to_jid, limit, between=True, callback=None, errback=None):
258 return self._callback("getHistory", unicode(from_jid), unicode(to_jid), limit, between, callback=callback, errback=errback) 258 return self._callback("getHistory", unicode(from_jid), unicode(to_jid), limit, between, callback=callback, errback=errback)
259 259
260 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 260 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,