Mercurial > libervia-backend
view README4PACKAGERS @ 1963:a2bc5089c2eb
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
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 20 Jun 2016 18:41:53 +0200 |
parents | 6881fc145d59 |
children | 10bfdc4777c5 |
line wrap: on
line source
First of all, thank you for packaging SàT :) ############ Dependencies ############ SàT requires Python 2.7. You will find below the list of Python modules the backend and the frontends depend on, as well as additional information. ------------------------------ Dependencies for SàT's backend ------------------------------ dbus lxml >= 3.1.0 Mutagen pillow PyCrypto >= 2.6.1 PyOpenSSL python-dbus Python OTR Twisted Core Twisted Mail Twisted Web Twisted Words Wokkel >= 0.7.1 XDG zope.interface Recommended: markdown, html2text, netifaces, miniupnp -------------------------------- Dependencies for the Jp frontend -------------------------------- PyGI (PyGObject 3) Recommended: progressbar, inotify, lxml ---------------------------------------- Dependencies for the Primitivus frontend ---------------------------------------- Urwid >= 1.2.0 Urwid-satext >= 0.4.1 GObject 2 (not imported directly in Primitivus, but needed for Urwid's main loop) DBus Suggested: Python X Library (for user notifications in a graphical session) -------------------------------------- Dependencies for the Libervia frontend -------------------------------------- Jinja2 (for static blogs only) pyjamas (for building only) txJSON-RPC Recommended: pyOpenSSL ################## Satellite projects ################## Several project have been made around SàT, they are all available at http://repos.goffi.org: - Libervia: the both Ajax and static web frontend. - SàT PubSub: a PubSub service which manage experimental features like fine permission tuning. - SàT media: Media needed by the frontends. - Urwid SàText: Widgets for urwid library, designed for SàT but can be useful for other projects. Mandatory for Primitivus. The following ones are not needed in a distribution, because they are in too early a stage of development, or not useful for general purpose: - Bellaciao: a Qt frontend, at an early stage of development. - Salut: an XMPP directory, at a very early stage of development. - SàT Website: the code of the website. ######## Licences ######## We are careful about the licences we use. Our projects are licenced as follow: - Libervia, SàT PubSub, Bellaciao, Salut, SàT Website: AGPL v3+ - Urwid SàText: LGPL v3+ When an external code is included (portion or library), we indicate the source and the licence, and we are careful to take Libre licences only. If we made a mistake somewhere, please let us know. The case of SàT Media is particular are there is a compilation of media from severals sources. SàT Logo was made by Adrien Vigneron and is under CC By-SA. Other works are all under Free licences, licences are specified in the base directory of each package. ##################### Packages and versions ##################### We have packaged Primitivus and Jp with the core backend, as we think theses frontends should be shipped with each SàT distribution. Libervia is distributed as a separate package because of its specificities (it's a huge project by itself, it uses Pyjamas Python => JS Compiler, etc.). But it's part of the same project. All the official frontends have the same version number, which is the version of the backend they use. ####### Updates ####### There is a SQLite database per user (default in ~/local/share/sat/.sat.db); it is updated automatically if there is a schema change. ############## Contrat social ############## The social contract is an important part of the project, please don't forget to distribute it along with SàT. ############# Miscellaneous ############# There is a completion file for Zsh which detects the parameters of Jp. It's available in the misc/ directory (.jp) and must be available in a path included in user's fpath. The translations are global to all the frontends (no translations available in Libervia yet). There are not up-to-date since 0.4 version. The .service file in misc repository is used for auto-launch feature of D-Bus (launching a frontend will automatically launch the backend if it's not already present), setup.py adapt the path once installed. If you put it yourself, be sure that the "Exec=" line link to the sat.sh script. This file should be in .services dir, usually /usr/share/dbus-1/services/ Thank you again for you help; don't forget to give us your name and contact email so we can credit you, and don't hesitate to contact us if you have any question (on the sat XMPP room at sat@chat.jabberfr.org, or check README for individual contacts).