Commit graph libervia-backend/frontends/src
Author SHA1 Message Date
Goffi
caaa753d80 quick frontend (chat): fixed messageNew signal dispatching when several widgets are handling the target 2016-08-21 17:04:33 +02:00
Goffi
8a7029b549 quick frontend (quick_widget): getWidgets can now filter on hash (using target), handling recreated widgets too 2016-08-21 17:03:18 +02:00
Goffi
93c860a443 jp: added jp/debug commands:
jp/debug hierarchy contain commands useful for developping and debugging.
    first commands are jp/debug/bridge:
        - "method" allows to call a bridge method, args are parsed as python arguments (using eval).
        - "signal" do the same to send a signal from backend, using the new debug plugin.
2016-08-21 12:27:19 +02:00
Goffi
0c83d13b7c frontends (xmlui): added a user_action attribute:
this attribute indicate if the data is a result of a user interaction or an event from the backend (in the later case, the frontend can choose to avoid interrupting the user).
Internally (in XMLUI), "FROM_BACKEND" is added to XMLUI.flags if the UI result from a backend event.
2016-08-21 12:07:31 +02:00
Goffi
4518afa0fb quick frontend (app): fixed regression in groups handling 2016-08-10 23:23:48 +02:00
Goffi
cc17c2869f quick frontend (chat): added a getlocale method and changed self.day_change calculation for pyjamas compatibility 2016-08-09 01:11:22 +02:00
Goffi
40b71e6f80 quick frontend (contact): fixed roster and roster_connected in handler + add a next function for pyjamas compatibility 2016-08-09 01:10:09 +02:00
Goffi
3f83911645 quick frontend (QuickApp): unicode string fix 2016-08-09 01:08:59 +02:00
Goffi
56211b33c6 primitivus, quick frontend (chat): moved time text generation to QuickChat 2016-08-08 21:05:04 +02:00
Goffi
21bdd2cbca quick frontend (widget): minor profiles check on widget creation 2016-08-08 00:49:17 +02:00
Goffi
c7e84506dd quick frontend(chat): fixed traceback in log message 2016-08-08 00:48:22 +02:00
Goffi
2d468f9e94 quick frontends, primitivus: messageState signal handling 2016-08-02 23:11:44 +02:00
Goffi
c0e4960c55 primitivus (chat): added :topic (and :subject and :title aliases) to change subject with a dialog (/!\ urwid SàText need to be updated) 2016-07-24 19:00:50 +02:00
Goffi
82a12186ea quick frontend, primitivus (chat, contact_list): fixed MUC private messages handling:
- occupants can be clicked again
    - QuickChat.Occupant now keep room jid and real jid if available
    - history messages are filtered correctly when requesting history for MUC room or private conversation
2016-07-24 18:07:45 +02:00
Goffi
60c8f2fc3d quick_frontend(chat): better handling of cached signals when initialising widget 2016-07-24 18:02:34 +02:00
Goffi
9f853cd774 quick_frontend, primitivus (chat): fixed widget bad locking + don't send notification when locked 2016-07-24 17:59:24 +02:00
Goffi
9456417949 quick_frontend, primitivus (contact_list): ContactList widget must now call postInit() when ready, to avoid being registered before being constructed 2016-07-24 17:56:18 +02:00
Goffi
e32bd443a3 quick_frontend, primitivus: better notifications handling 2016-07-24 17:56:14 +02:00
Goffi
57daef07a7 quick_frontend, primitivus (contact_list): improved and simplified handling of "special" entities:
- special_extras has been removed
    - specials handle all entities (bare + full) in a single set
2016-07-24 17:47:09 +02:00
Goffi
9647e90943 backend (memory), frontends: improved history filtering:
a "filters" dictionnary is now use to filter, it can have, for now, filtering on:
        - "body": filter only on the body (equivalent to former "search" parameter, but not case sensitive)
        - "search": fitler on body + source resource
        - "types": allowed types
        - "not_types": forbidden types

    primitivus now do searching using "search", i.e. source resource is now taken into account (and search is now case insensitive)
2016-07-18 00:52:02 +02:00
Goffi
6422e8733d primitivus: dont call chatStateComposing where history keys are pressed 2016-07-17 19:44:15 +02:00
Goffi
2368e68c37 primitivus (chat): don't send notification for move messages 2016-07-17 17:59:14 +02:00
Goffi
73a8db4e64 primitivus, quick_frontends: show global notifications counter in contact_list + method to get these notifications in QuickApp 2016-07-17 17:32:46 +02:00
Goffi
8c9161bc87 primitivus: fixed notifications counter for simple messages in MUC rooms 2016-07-17 17:12:42 +02:00
Goffi
cc160e03d7 plugin XEP-0085, quick_frontends, primitivus: chat states are working again 2016-07-17 16:47:33 +02:00
Goffi
becdbf205a quick_frontend (QuickWidget): keep on_new_widget argument when recreating a widget 2016-07-11 19:22:40 +02:00
Goffi
0a197cab88 quick_frontend, primitivus: moved main_message property to quick_frontend 2016-07-10 12:26:13 +02:00
Goffi
a3feb39a59 primitivus: fixed XMLUI window creation
newWidget method was not working if a widget was already selected, breaking all XMLUI with window type.
2016-07-01 00:02:28 +02:00
Goffi
bd46cb609e primitivus (chat): fixed a crash when page-up was pressed on room contacts list 2016-07-01 00:00:12 +02:00
Goffi
6b75a82f04 primitivus (chat): moved occupants widget to a dedicated class + display occupants count in footer 2016-07-01 00:00:11 +02:00
Goffi
25bbaa705a frontends (xmlui): cancelling form now trigger submit with {"cancelled": "true"} instead of being silently ignored 2016-06-29 13:51:39 +02:00
Goffi
c1c7b0446c quick_frontend: allow presence of entities without resource 2016-06-29 13:42:35 +02:00
Goffi
edfdc06654 merged main branch 2016-06-28 18:37:29 +02:00
Goffi
dc69b62b16 primitivus: paste is now treated as normal text instead of discarded if edit_bar doesn't exist 2016-06-28 18:32:57 +02:00
Goffi
a16d8bfc01 primitivus (chat): mention is now visible by date in red instead of body (or a "[*]" if date is hidden) 2016-06-28 18:31:08 +02:00
Goffi
2e204f182a primitivus (chat): fixed timestamp/nick (un)hiding + new redraw and printMessages methods 2016-06-28 18:29:56 +02:00
Goffi
4afff0d837 merged main branch 2016-06-27 22:49:36 +02:00
Goffi
aace5a2520 quick_frontend, primitivus (chat): mention detection in group chat + notification (mention and messages) 2016-06-27 22:37:51 +02:00
Goffi
b388d2b172 quick_frontend, primitivus: notifications refactoring
replaced old "alerts" system by a more generic one which use listeners and can activate callbacks on notification click.
2016-06-27 22:36:22 +02:00
Goffi
604706eb9c primitivus: ignore paste if edit bar is not selected 2016-06-27 22:04:55 +02:00
Goffi
22d70f23c4 primitivus (chat): fixed nick completion. Completion is now managed per widget, if completion method exists 2016-06-27 21:45:13 +02:00
Goffi
04515e5013 plugin XEP-0045, quick_frontend + primitivus (chat): cleaning of XEP-0045 (first pass):
- bridge methods/signals now all start with "muc" to follow new convention
    - internal method use client instead of profile to follow new convention
    - removed excetpions from plugin XEP-0045 in favor of core.exceptions, NotReady added
    - cleaned/simplified several part of the code. checkClient removed as it is not needed anymore
    - self.clients map removed, muc data are now stored directly in client
    - getRoomEntityNick and getRoomNicksOfUsers are removed as they don't look sane.
        /!\ This break all room game plugins for the moment
    - use of uuid4 instead of uuid1 for getUniqueName, as host ID and current time are used for uuid1
2016-06-27 21:45:11 +02:00
Goffi
a28bb7be8f merged main branch 2016-06-24 22:41:28 +02:00
Goffi
fe8187a413 jp (blog): fixed syntax detection when extension is .txt 2016-06-24 22:32:58 +02:00
Goffi
be443a043f primitivus (chat): fixed filters clearing when changing filter while one already exists 2016-06-20 23:07:53 +02:00
Goffi
e784c1694c primitivus: basic handling of filter, only language can filtered for now 2016-06-20 19:19:16 +02:00
Goffi
a7de473107 backend, frontends: message refactoring (huge commit):
/!\ several features are temporarily disabled, like notifications in frontends

next step in refactoring, with the following changes:
    - jp: updated jp message to follow changes in backend/bridge
    - jp: added --lang, --subject, --subject_lang, and --type options to jp message + fixed unicode handling for jid
    - quick_frontend (QuickApp, QuickChat):
        - follow backend changes
        - refactored chat, message are now handled in OrderedDict and uid are kept so they can be updated
        - Message and Occupant classes handle metadata, so frontend just have to display them
    - Primitivus (Chat):
        - follow backend/QuickFrontend changes
        - info & standard messages are handled in the same MessageWidget class
        - improved/simplified handling of messages, removed update() method
        - user joined/left messages are merged when next to each other
        - a separator is shown when message is received while widget is out of focus, so user can quickly see the new messages
        - affiliation/role are shown (in a basic way for now) in occupants panel
        - removed "/me" messages handling, as it will be done by a backend plugin
        - message language is displayed when available (only one language per message for now)
        - fixed :history and :search commands
    - core (constants): new constants for messages type, XML namespace, entity type
    - core: *Message methods renamed to follow new code sytle (e.g. sendMessageToBridge => messageSendToBridge)
    - core (messages handling): fixed handling of language
    - core (messages handling): mes_data['from'] and ['to'] are now jid.JID
    - core (core.xmpp): reorganised message methods, added getNick() method to client.roster
    - plugin text commands: fixed plugin and adapted to new messages behaviour. client is now used in arguments instead of profile
    - plugins: added information for cancellation reason in CancelError calls
    - plugin XEP-0045: various improvments, but this plugin still need work:
        - trigger is used to avoid message already handled by the plugin to be handled a second time
        - changed the way to handle history, the last message from DB is checked and we request only messages since this one, in seconds (thanks Poezio folks :))
        - subject reception is waited before sending the roomJoined signal, this way we are sure that everything including history is ready
        - cmd_* method now follow the new convention with client instead of profile
        - roomUserJoined and roomUserLeft messages are removed, the events are now handled with info message with a "ROOM_USER_JOINED" info subtype
    - probably other forgotten stuffs :p
2016-06-20 18:41:53 +02:00
Goffi
a9aa17f2d0 jp: fixed shebang python call 2016-06-19 22:22:08 +02:00
Goffi
f12803fa65 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.
2016-05-24 22:11:04 +02:00
Goffi
eff7ec3ded minor doc fixes 2016-04-18 18:35:19 +02:00