Mercurial > libervia-backend
comparison src/test/helpers.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 | e20c823f23e2 |
children | 65b30bc7f1b3 |
comparison
equal
deleted
inserted
replaced
668:7bb50096d225 | 669:ffb716804580 |
---|---|
72 """Class to simulate and test memory object""" | 72 """Class to simulate and test memory object""" |
73 | 73 |
74 def getProfileName(self, profile_key): | 74 def getProfileName(self, profile_key): |
75 return profile_key | 75 return profile_key |
76 | 76 |
77 def addToHistory(self, from_jid, to_jid, message, _type='chat', timestamp=None, profile=None): | 77 def addToHistory(self, from_jid, to_jid, message, _type='chat', extra=None, timestamp=None, profile="@NONE@"): |
78 pass | 78 pass |
79 | 79 |
80 def addContact(self, contact_jid, attributes, groups, profile_key='@DEFAULT@'): | 80 def addContact(self, contact_jid, attributes, groups, profile_key='@DEFAULT@'): |
81 pass | 81 pass |
82 | 82 |