comparison src/bridge/DBus.py @ 669:ffb716804580

core, bridge: extra parameter is saved in history: - added extra data in getHistory return value - extra data is saved in database /!\ WARNING: DATABASE SCHEMA HAS CHANGED /!\ to update sqlite database: ALTER TABLE history ADD COLUMN extra BLOB;
author Goffi <goffi@goffi.org>
date Thu, 07 Nov 2013 15:29:39 +0100
parents 7d6e5807504a
children d731ae066158
comparison
equal deleted inserted replaced
668:7bb50096d225 669:ffb716804580
269 async_callbacks=None) 269 async_callbacks=None)
270 def getEntityData(self, jid, keys, profile): 270 def getEntityData(self, jid, keys, profile):
271 return self._callback("getEntityData", unicode(jid), keys, unicode(profile)) 271 return self._callback("getEntityData", unicode(jid), keys, unicode(profile))
272 272
273 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 273 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
274 in_signature='ssibs', out_signature='a(dssss)', 274 in_signature='ssibs', out_signature='a(dssssa{ss})',
275 async_callbacks=('callback', 'errback')) 275 async_callbacks=('callback', 'errback'))
276 def getHistory(self, from_jid, to_jid, limit, between=True, profile="@NONE@", callback=None, errback=None): 276 def getHistory(self, from_jid, to_jid, limit, between=True, profile="@NONE@", callback=None, errback=None):
277 return self._callback("getHistory", unicode(from_jid), unicode(to_jid), limit, between, unicode(profile), callback=callback, errback=errback) 277 return self._callback("getHistory", unicode(from_jid), unicode(to_jid), limit, between, unicode(profile), callback=callback, errback=errback)
278 278
279 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX, 279 @dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,