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;
This commit is contained in:
parent
008e449e59
commit
8624c3c547
2 changed files with 30 additions and 21 deletions
|
|
@ -271,7 +271,7 @@ class DbusObject(dbus.service.Object):
|
|||
return self._callback("getEntityData", unicode(jid), keys, unicode(profile))
|
||||
|
||||
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
|
||||
in_signature='ssibs', out_signature='a(dssss)',
|
||||
in_signature='ssibs', 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)
|
||||
|
|
|
|||
|
|
@ -488,7 +488,7 @@ async=
|
|||
type=method
|
||||
category=core
|
||||
sig_in=ssibs
|
||||
sig_out=a(dssss)
|
||||
sig_out=a(dssssa{ss})
|
||||
param_3_default=True
|
||||
param_4_default="@NONE@"
|
||||
doc=Get history of a communication between two entities
|
||||
|
|
@ -497,7 +497,7 @@ doc_param_1=to_jid: dest JID (bare jid for catch all, full jid else)
|
|||
doc_param_2=limit: max number of history elements to get (0 for the whole history)
|
||||
doc_param_3=between: True if we want history between the two jids (in both direction), False if we only want messages from from_jid to to_jid
|
||||
doc_param_4=%(doc_profile)s
|
||||
doc_return=Ordered list (by timestamp) of tuples (timestamp, full from_jid, full to_jid, message, type)
|
||||
doc_return=Ordered list (by timestamp) of tuples (timestamp, full from_jid, full to_jid, message, type, extra)
|
||||
|
||||
[addContact]
|
||||
type=method
|
||||
|
|
|
|||
Loading…
Reference in a new issue