Commit graph

3,480 commits

Author SHA1 Message Date
Goffi
018d09caaa Renamed the project from "Salut à Toi" to "Libervia":
This renaming follows the decision taken at the General Assemblee of January 27th 2021 (cf.
https://repos.goffi.org/sat_docs/raw-file/tip/association/2021-01-27%20-%20compte%20rendu%20de%20l%27AG%20extraordinaire.pdf)
2021-03-20 20:42:04 +01:00
Goffi
dc86957043 date update 2021-03-19 15:45:14 +01:00
Goffi
591b9fe8bc tools (common/template): new fallback settings:
`fallback` can be used to change fallback behaviour. By default, fallback is done on
`default` theme, this can be set to an other theme with a string, or to a list of
fallback. The list can also be empty is no fallback is desired (notably usefull for "main"
themes, on which other themes may fallback).

This setting replaces `css_default_fallback`.
2021-03-19 14:01:52 +01:00
Goffi
bd779e8ddd tools (image): fix bad method name used when fix_orientation is set in resize 2021-03-19 14:01:51 +01:00
Goffi
33cef53495 core: moved sat_tmp.wokkel install sat_plugin:
This patch need to be installed early so it's available before anything imports
`wokkel.data_form`.
2021-03-18 22:35:59 +01:00
Goffi
7df670c8d0 core: removed sat_tmp.twisted patches + update minimum Twisted version:
- `sat_tmp` patches are not needed anymore and cause trouble with latest Twisted (21.02)
- update minimum to `20.3.0` which is the first one to support Python 3.8
2021-03-18 20:46:18 +01:00
Goffi
c7cb216f95 frontends (tools/xmui): implement ValueGetter.items and XMLUIPanel.values to get a map from widget name to values 2021-02-27 18:39:25 +01:00
Goffi
2819405d56 plugin XEP-0346: new psSchemaDictGet to get node schema as a serialisable dict 2021-02-27 18:37:43 +01:00
Goffi
026ac9db13 tools (xml_tools): new dataForm2dataDict and dataDict2dataForm:
those methods convert a serialisable dict format to `wokkel.data_form.Form` and vice versa
2021-02-27 18:36:38 +01:00
Goffi
e60d563d27 plugin list: set overwrite_policy to any_publisher for grocery list 2021-02-27 18:33:53 +01:00
Goffi
79bfb24a62 plugin list: rename shopping list to grocery list 2021-02-27 18:32:34 +01:00
Goffi
1193faccdb plugin lists: register tickets_type namespace 2021-02-27 18:31:47 +01:00
Goffi
b1d0905974 plugin XEP-0060: added constants for overwrite policy configuration option 2021-02-27 18:25:20 +01:00
Goffi
96d229abdb plugin XEP-0060: renamed psRetractItem(s) to psItem(s)Retract for consistency. 2021-02-19 15:53:27 +01:00
Goffi
843928bf02 tools (xml_tools): fix pFmtElt:
default URI was not handled correctly, and attributes were missing, this patch fixes
those bugs.
2021-02-19 15:53:25 +01:00
Goffi
32899b71e2 tools (common/email): try to guess sender domain when necessary:
when `DNSNAME` is `localhost.localdomain` and is `mail_sender_domain` is not set, a guess
is done to find a proper domain, using `email_from`.
2021-02-19 15:53:24 +01:00
Goffi
60eab42b9e plugin lists: new listsList method to retrieve lists from personal interests 2021-02-19 15:53:20 +01:00
Goffi
fe5af39ab5 plugin misc list: register lists for pubsub invitations 2021-02-19 15:52:28 +01:00
Goffi
795931373a plugin invitation: pubsub invitations:
- new Pubsub invitation plugin, to have a generic way to manage invitation on Pubsub based
  features
- `invitePreflight` and `onInvitationPreflight` method can be implemented to customise
  invitation for a namespace
- refactored events invitations to use the new plugin
- a Pubsub invitation can now be for a whole node instead of a specific item
- if invitation is for a node, a namespace can be specified to indicate what this node is
  about. It is then added in `extra` data
- an element (domish.Element) can be added in `extra` data, it will then be added in the
  invitation
- some code modernisation
2021-02-19 15:50:22 +01:00
Goffi
eabf3d536a plugin misc lists: register app NS for "tickets" NS instead of XEP-0346 submitted one 2021-02-19 15:49:59 +01:00
Goffi
bdf4759d21 plugin misc lists: templates:
Templates are a way to create lists with pre-filled schemas.
2021-02-19 15:49:58 +01:00
Goffi
8aebf00194 plugin tickets, merge_requests: renamed "tickets" feature to "lists":
this feature is more generic than only "tickets" for technical stuff, thus the name
"lists" seems more appropriate.
2021-02-04 21:05:21 +01:00
Goffi
28798940d7 Backed out changeset 6deea0d8d0e7
This patch has been merged by mistake, it will be applied later.
2021-02-04 21:07:49 +01:00
Goffi
f15f09bb70 plugin XEP-0346: use submitted namespace for node:
the node was not always adapted to the submitted namespace now used with XEP-0346, this
patch fixes it by adding the prefix when it's missing.
2021-02-04 21:05:21 +01:00
Goffi
b6eb5a83f5 plugin tickets, merge_requests: renamed "tickets" feature to "lists":
this feature is more generic than only "tickets" for technical stuff, thus the name
"lists" seems more appropriate.
2021-02-04 21:05:21 +01:00
Goffi
505e93d833 plugin app manager docker: use default emails for weblate:
when `email_from` was not set in `sat.conf`, no value was set for `WEBLATE_SERVER_EMAIL`
and `WEBLATE_DEFAULT_FROM_EMAIL`. These environment variables are needed for Weblate to be
launched, so default value are now used (the same as the one from official Weblate Docker
image).
2021-01-15 11:27:15 +01:00
Goffi
7f9a9cd268 doc (jp/message): typo 2021-01-02 17:08:11 +01:00
Goffi
3d112ec965 jp (pubsub/node/schema): handle not-found conditions properly 2020-12-11 17:58:36 +01:00
Goffi
968ee50d31 plugin XEP-0346: "Form Discovery and Publishing" implementation:
this implementation replaces the former non standard node schema, and works in a similar
way (the schema is put in a separated node instead of a special field, thus it will now
work with most/all PubSub services, and not only SàT PubSub).

The implementation has been done in a way that nothing should be changed in frontends
(bridge methods names and arguments stay the same). The nodes are modified, but if values
are taken from backend, it's automatically adapted.
2020-12-11 17:57:00 +01:00
Goffi
df6f87d69a plugin XEP-0060: add constants for common values of publish model 2020-12-11 17:50:53 +01:00
Goffi
fa21471766 plugin XEP-0106: log rejected value when escaping fails. 2020-12-11 17:49:44 +01:00
Goffi
510ab4d5aa plugin XEP-0096: fix plugin following changes in plugin_misc_file 2020-12-11 17:48:19 +01:00
Goffi
81e9ebdf9a tools (xml_tools): add missing value property to JidWidget 2020-12-10 14:11:45 +01:00
Goffi
247589aedc plugin XEP-0431: Fulltext Search for MAM implementation 2020-12-10 10:32:54 +01:00
Goffi
f69eb56a02 docker (pubsub): install latest version of postgresql-client with PostgreSQL own Debian repos. 2020-12-10 10:28:05 +01:00
Goffi
a130048614 docker: use slim version of Debian as base for our images 2020-12-10 10:28:00 +01:00
Goffi
053a174139 contrat social: updated English translation's formulation about censorship:
the new formulation is a translation of the new formulation in original French version.

This has been requested at annual general meeting of 2019-11-23
2020-12-10 10:27:59 +01:00
Goffi
48cd6ca473 contrat social: replaced formulation about censorship:
The formulation "Nous ferons tout notre possible pour lutter contre toute tentative de
censure." as been replaced by "Nous ferons tout
notre possible pour lutter contre toute tentative de censure, y compris en protégeant la
parole des victimes de harcèlement, discours haineux, menaces, humiliations et tout ce
qui pourrait mener à de l'autocensure."

This as been requested in annual general meeting of 2019-11-23
2020-12-05 11:53:11 +01:00
Goffi
639a185b54 contrat social (en): replaced "Mankind" by "Humanity":
this was requested in annual general meeting of 2019-11-23
2020-12-05 11:45:36 +01:00
Goffi
50fd4f48d0 tests (e2e/libervia): more stable test_user_can_log_in + photos tests 2020-12-04 12:39:44 +01:00
Goffi
b034e46543 tests (e2e): new fixture to share data between tests:
this is usefull in some edge cases when tests are dependents of each other.
2020-12-04 12:38:38 +01:00
Goffi
ad3aea8ec0 tests, doc(testing): added pytest-dependency plugin to backend_e2e image + doc 2020-12-04 12:37:38 +01:00
Goffi
7527b54bd7 tests (e2e/libervia/conftest): new log_in_account1_s2 fixture 2020-12-04 12:36:06 +01:00
Goffi
0328129b98 tests (e2e/conftest): create a test account on server3.test 2020-12-04 12:35:00 +01:00
Goffi
736f91e557 tests (e2e/conftest): check new exit code for conflict to avoid crashing if test accounts already exist 2020-12-04 12:34:24 +01:00
Goffi
095ec0c71a jp (account): better exit code handling 2020-12-04 12:32:56 +01:00
Goffi
02472de2c4 plugin XEP-0234: make fileJingleRequest async to fix call of initiate 2020-12-04 12:32:05 +01:00
Goffi
3f9e61662c core (constants): added EXIT_CONFLICT 2020-12-04 12:30:46 +01:00
Goffi
b552e37a5b docker (e2e): use shared volume for SàT's local dir:
It is necessary to have a shared local dir to let libervia access files.
2020-12-04 12:30:00 +01:00
Goffi
be611f8a53 doc (testing): typos 2020-12-04 12:27:38 +01:00