comparison src/bridge/DBus.py @ 512:862c0d6ab974

core, bridge, quick_frontend: MUC private messages history management: - history now store message type - sqlite3 storage: fixed resource management in getHistory - bridge: added message type in getHistory return value - quick_chats: (ugly) hacks to manage private history filtering/nickname printing
author Goffi <goffi@goffi.org>
date Wed, 17 Oct 2012 00:35:48 +0200
parents 65ecbb473cbb
children 8ee9113d307b
comparison
equal deleted inserted replaced
511:62f7f2403093 512:862c0d6ab974
266 async_callbacks=None) 266 async_callbacks=None)
267 def getEntityData(self, jid, keys, profile): 267 def getEntityData(self, jid, keys, profile):
268 return self._callback("getEntityData", unicode(jid), keys, unicode(profile)) 268 return self._callback("getEntityData", unicode(jid), keys, unicode(profile))
269 269
270 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 270 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
271 in_signature='ssib', out_signature='a(dsss)', 271 in_signature='ssib', out_signature='a(dssss)',
272 async_callbacks=('callback', 'errback')) 272 async_callbacks=('callback', 'errback'))
273 def getHistory(self, from_jid, to_jid, limit, between=True, callback=None, errback=None): 273 def getHistory(self, from_jid, to_jid, limit, between=True, callback=None, errback=None):
274 return self._callback("getHistory", unicode(from_jid), unicode(to_jid), limit, between, callback=callback, errback=errback) 274 return self._callback("getHistory", unicode(from_jid), unicode(to_jid), limit, between, callback=callback, errback=errback)
275 275
276 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 276 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,