Mercurial > libervia-backend
comparison frontends/src/quick_frontend/quick_widgets.py @ 1955:633b5c21aefd
backend, frontend: messages refactoring (huge commit, not finished):
/!\ database schema has been modified, do a backup before updating
message have been refactored, here are the main changes:
- languages are now handled
- all messages have an uid (internal to SàT)
- message updating is anticipated
- subject is now first class
- new naming scheme is used newMessage => messageNew, getHistory => historyGet, sendMessage => messageSend
- minimal compatibility refactoring in quick_frontend/Primitivus, better refactoring should follow
- threads handling
- delayed messages are saved into history
- info messages may also be saved in history (e.g. to keep track of people joining/leaving a room)
- duplicate messages should be avoided
- historyGet return messages in right order, no need to sort again
- plugins have been updated to follow new features, some of them need to be reworked (e.g. OTR)
- XEP-0203 (Delayed Delivery) is now fully handled in core, the plugin just handle disco and creation of a delay element
- /!\ jp and Libervia are currently broken, as some features of Primitivus
It has been put in one huge commit to avoid breaking messaging between changes.
This is the main part of message refactoring, other commits will follow to take profit of the new features/behaviour.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 24 May 2016 22:11:04 +0200 |
parents | 011eff37e21d |
children | b5ef9b2b995e |
comparison
equal
deleted
inserted
replaced
1943:ccfe45302a5c | 1955:633b5c21aefd |
---|---|
245 | 245 |
246 | 246 |
247 class QuickWidget(object): | 247 class QuickWidget(object): |
248 """generic widget base""" | 248 """generic widget base""" |
249 SINGLE=True # if True, there can be only one widget per target(s) | 249 SINGLE=True # if True, there can be only one widget per target(s) |
250 PROFILES_MULTIPLE=False | 250 PROFILES_MULTIPLE=False # If True, this widget can handle several profiles at once |
251 PROFILES_ALLOW_NONE=False | 251 PROFILES_ALLOW_NONE=False # If True, this widget can be used without profile |
252 | 252 |
253 def __init__(self, host, target, profiles=None): | 253 def __init__(self, host, target, profiles=None): |
254 """ | 254 """ |
255 @param host: %(doc_host)s | 255 @param host: %(doc_host)s |
256 @param target: target specific for this widget class | 256 @param target: target specific for this widget class |