Commit graph libervia-backend/frontends
Author SHA1 Message Date
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
Goffi
e8783b42df quick app (contact list): when a new profile is plugged, updates are locked until the end of the process, this avoid many useless refreshes 2016-04-18 18:33:55 +02:00
Goffi
8851addc20 quick frontend, primitivus: quickContactList refactored to handle several profiles at once 2016-04-18 18:31:13 +02:00
Goffi
06663b9571 core: removed pyfeed and xe dependencies:
pyfeed and xe where still used only for date format handling, and there is already dateutil which is a dependency of Wokkel.
    Furthermore pyfeed and xe are still not on pypi, causing troubles for installation with pip
2016-04-17 17:08:12 +02:00
Goffi
6bbcbaf522 use of /usr/bin/env instead of /usr/bin/python in shebang 2016-04-17 14:45:26 +02:00
souliane
edb31e2d74 plugin adhoc_dbus, jp (cmd/adhoc): fixes adHocDBusAddAuto when no bus is found
fix bug 134
2016-04-17 13:37:40 +02:00
souliane
4408147e2d jp (cmd/roster): fixes division by zero exceptions
fix bug 135
2016-04-17 13:00:44 +02:00
Goffi
74409e5e64 quick frontend (QuickApp): added ui_show_cb in actionManager, so frontend can handle the display of the XMLUI itself 2016-03-26 16:15:23 +01:00
Goffi
f600da971e jp (blog/edit): use utf-8-sig to decode content file to avoid BOM being propaged to content 2016-03-25 15:32:43 +01:00
Goffi
24be8976ef jp (blog/edit): added forgotten O_TRUNC while opening metadata file 2016-03-25 12:06:50 +01:00
Goffi
c951dea64b jp (blog/edit): do not remove files if they are not in the temporary dir hierarchy 2016-03-25 11:45:57 +01:00
Goffi
c3ae32be42 jp (blog/edit): HTTP(S) and XMPP URLs can now be directly used in blog/edit command 2016-03-24 18:38:04 +01:00
Goffi
e3623e67ef jp (blog): force deletion (without backup) when content is empty 2016-03-22 23:33:55 +01:00
Goffi
9d304eec88 jp (blog): avoid conflict error when command line tags are already present in metadata 2016-03-22 23:33:31 +01:00
Goffi
2fd6fa663c jp (blog): drafts are now put in a sub dir per profile + added a security which keep the last 10 drafts before removing them (all profiles included). 2016-03-22 22:46:05 +01:00
Goffi
2d1d286be2 core (tools): moved common to a separate package, and put data method in a data_format module 2016-03-22 22:46:04 +01:00
Goffi
d0fb849398 jp: fixed traceback shown on a normal quit when a progression is finished 2016-03-21 19:44:16 +01:00
Goffi
d02c466ddd bridge (frontend): raise a BridgeExceptionNoService on org.freedesktop.DBus.Error.Spawn.ExecFailed D-Bus error 2016-03-21 19:44:16 +01:00
Goffi
9782588177 jp (blog): added "updated" to keys to keys to remove from tmp metadata 2016-03-15 16:25:42 +01:00
Goffi
7ebae7c89a jp (blog/edit): removed meta_file_path non existence check, as it is now re-used if it exists 2016-03-10 19:13:42 +01:00
Goffi
3ab15a6aee jp (blog/edit): a draft file can be directly specified 2016-03-10 18:05:37 +01:00
Goffi
27cd8412d5 plugin XEP-0060: fixed traceback if service was None 2016-03-10 17:50:17 +01:00
Goffi
645ade7e73 primitivus: fixed window resize (was blocked by paste detection) 2016-04-23 23:46:35 +02:00
Goffi
1fc8580831 jp: added consts for exit codes, not used yet 2016-04-23 23:30:06 +02:00
Goffi
b8e62dd69c jp: --output option:
- new --output option can be added wich use_output. use_output can be True (in which case it wild default to C.OUTPUT_TEXT), or any of C.OUTPUT_TYPES (currently text, list and dict)
    - output change the output format mainly to make command result parsing more easy, but it can also be use to add fancy effects (like coloration)
    - outputs are added with plugins in the same way as commands (import of both is done in the same method)
    - in the command class, output need to be declared with use_output=C.OUTPUT_xxx, then the data only need to be processed with self.output(data)
    - outputs can have description (not used yet)
    - use_xxx argument handling has been refactored (minor refactoring) to be more generic
    - first outputs are "default", "json" (pretty printed) and "json_raw" (compact json)
    - the first command to use them is "profile list"
2016-04-23 23:10:03 +02:00
Goffi
724fa7541a primitivus: added bracketed_paste option in sat.conf (if set, the bracketed paste mode will be activated on Primitivus start) 2016-04-23 01:28:35 +02:00
Goffi
0d3a96a8da primitivus: bracketed paste mode is now detected 2016-04-23 00:31:59 +02:00
Goffi
6c30009ef8 primitivus: fixed paste detection/handling:
- mouse and window events are discarded
    - input_ is used to get text
    - cursor position is used to paste buffer in the good place, and updated once finished
2016-04-22 22:30:13 +02:00
Goffi
6dd58f0878 primitivus: paste is now detected, and put in edit bar, so use can check and validate it 2016-04-21 20:20:40 +02:00
Goffi
bf45c1d91c jp: forgotten shebang fixes 2016-04-19 20:09:02 +02:00
souliane
ce507c49da frontends (jp / blog): pass the profile to subprocess when using option --preview 2016-03-07 19:58:33 +01:00
Goffi
fe340c0135 jp (blog/preview): change watch for IN_MOVE_SELF event, needed at least for Emacs 2016-03-07 19:43:02 +01:00
Goffi
cf588d3e74 jp (blog/edit): added a confirmation message when blog item has been successfuly published 2016-03-05 20:19:40 +01:00
Goffi
f74fd5552a blog (jp/edit): added --preview option to launch a "blog preview" in parallel 2016-03-05 20:19:17 +01:00
Goffi
8839f38813 jp (blog/preview): inotify improvments:
- InotifyError are catched (can happen if file is deleted during preview for instance)
    - handle IN_DELETE_SELF event which happen when editor write content in a new file and switch to it (tested with vim)
2016-03-05 19:24:10 +01:00
Goffi
63b26aad8f jp (blog/preview): open and preview commands can be changed in sat.conf with "blog_preview_open_cmd" and "blog_preview_update_cmd" in [jp] section + don't convert syntax when content is empty 2016-03-05 19:21:35 +01:00