Commit graph

3,392 commits

Author SHA1 Message Date
Goffi
d52d8af6cf plugin XEP-0047: fixed file reading and content encoding 2020-11-12 14:53:15 +01:00
Goffi
4bc90ee0bc plugin ip: don't set to anymore for IQ stanza, as we send it to our server 2020-11-12 14:53:15 +01:00
Goffi
b6d26f3a67 core (memory/params): removed legacy "Register new account" label, it's not used anymore 2020-11-12 14:53:15 +01:00
Goffi
da22ab2ce2 core (xmpp): client.roster now implements __contains__
Now a jid can be tested directly with "entity_jid in client.roster".
2020-11-12 14:53:15 +01:00
Goffi
d7bd6e56eb core: use utils.asDeferred for launchCallback so coroutines can be used 2020-11-12 14:53:15 +01:00
Goffi
a187f66d92 docker (compose): test environment variable + network alias:
`SAT_TEST_ENV_E2E` is set to `1` to indicate that e2e environment requirement are
available (notably specific accounts and hosts created). The e2e tests needing it won't be
launched if this variable is not set.

A network alias is set for the backend at `sat.test` (to have a tld available, needed for
some network libraries like OpenSSL).
2020-11-12 14:53:15 +01:00
Goffi
a9418adb36 docker (prosody_e2e): install ipcheck so jp doesn't need to contact external website 2020-11-12 14:53:15 +01:00
Goffi
0dd689e29d docker (backend_e2e): install pytest and sh 2020-11-12 14:53:15 +01:00
Goffi
697140bed7 docker (backend): set background to dark to avoid trouble with autodetection in jp 2020-11-12 14:53:15 +01:00
Goffi
459c169e63 doc, core: typos 2020-11-12 14:53:11 +01:00
Goffi
a3be4ed11d plugin app manager docker: typo 2020-10-20 09:12:38 +02:00
Goffi
0e7f9c1247 docker: dockers images, first draft:
This patch introduce new docker images, replacing the unmaintained ones which were in
sat_docs.

Images + docker-compose files are provided to use SàT backend and Libervia, but also to
integrate and configure Prosody and SàT PubSub to run end-to-end tests.
2020-10-19 09:30:45 +02:00
Goffi
a692ba8e2e tools (common/tls): removed unused import 2020-10-19 09:28:26 +02:00
Goffi
59b7820b3f core: sat.conf is now first checked in /etc/_sat.conf for system-related settings 2020-10-15 16:13:30 +02:00
Goffi
4c2c9b4f04 jp: don't guess background when stdout is not a tty 2020-10-15 14:44:42 +02:00
Goffi
7b746a50a8 jp (application/list): don't use extend in argument as in it Python 3.8+ only 2020-10-01 10:12:01 +02:00
Goffi
e91cd1cc66 plugin app manager docker: weblate SàT app file for Docker 2020-09-28 21:10:33 +02:00
Goffi
952358e409 i18n: renamed template file to get the correct '.pot' extension 2020-09-28 21:10:33 +02:00
Goffi
fd34697ac8 jp (application): new application (or app) commands:
those commands allow to:

- list available SàT applications
- start an application
- stop an application
- display/get exposed values
2020-09-28 21:10:33 +02:00
Goffi
e08be7f855 plugin app managed docker: handle Docker application with App Manager 2020-09-28 21:10:33 +02:00
Goffi
e1f123f120 plugin app manager: first draft:
/!\ new optional dependency: pyyaml

this plugin manage the life cycle of external applications. Application handlers register
to it.

Data needed to launch an application as set in YAML files. Local data types are used to
get values directly from SàT:

- !sat_conf to retrieve a configuration value
- !sat_generate_pwd to generate a password
- !sat_param for parameters specified a launch

Data can be exposed when an instance is launched, this can be used to specify the port
(notably the one used for web), or a generated password.
2020-09-28 21:10:30 +02:00
Goffi
0250053e19 core (memory/memory): added getCachePath method to get a cache dir from a namespace. 2020-09-28 17:00:14 +02:00
Goffi
c47ebb39a0 core: plugins can now be loaded from a directory:
A plugin can now be a directory with a name starting by `plugin_`. It will then be loaded
as a module. The `__init__.py` file must contain the `PLUGIN_INFO` dict with metadata.
2020-09-20 14:05:40 +02:00
Goffi
72501fd596 doc (installation): added instruction to download dev version of sat_template
Also add double quote to avoid shell interpretation.
2020-09-20 14:05:40 +02:00
Goffi
03cffe789c core: minor typos, docstring/comments update 2020-09-20 14:05:40 +02:00
Goffi
f7a83dd054 component file sharing: added missing owner filtering in _retrieveFiles 2020-09-20 14:04:22 +02:00
Goffi
50df9e6537 plugin XEP-0329, core(xmpp): moved _compParseJids to SatXMPPComponent:
This method to retrieve owner and peer JID from an element is generally useful for
components, thus it has been moved. The part to retrieve owner JID from local JID has been
splitted in its own `getOwnerFromJid` method.
2020-09-20 14:04:11 +02:00
Goffi
93e1250a59 plugin XEP-0329: fix filtering by owner on components 2020-09-20 11:03:24 +02:00
Goffi
f3bb26f9d9 core (memory/memory): public_id should not be used when creating parent dirs 2020-09-17 23:07:12 +02:00
Goffi
c9b2c1d27d component file sharing: fix used of self.files_path in _retrieveFiles 2020-09-17 21:42:14 +02:00
Goffi
629901674b plugin XEP-0329: fix conflict check + directory creation in onComponentCreateDir 2020-09-17 21:41:19 +02:00
Goffi
280f86881a core (memory/memory): fixed directory creation in setFile 2020-09-17 21:40:23 +02:00
Goffi
6601714e0e plugin XEP-0329: typo 2020-09-17 19:01:02 +02:00
Goffi
f321952cbe plugin XEP-0329: added FISCreateDir method:
This method is used to create a directory for component file sharing, and optionally set
its configuration.
2020-09-17 16:42:00 +02:00
Goffi
a82f7108a2 core (memory/memory): use str for path in getFiles and setFile to allow use of Path instances 2020-09-17 16:34:22 +02:00
Goffi
fca70e1710 plugin XEP-0313: fix getting MAM archive when history is empty 2020-09-17 11:27:57 +02:00
Goffi
e60b64d876 plugin XEP-0313: fixed MAMGet signature 2020-09-17 10:46:13 +02:00
Goffi
7f713e39f3 plugin XEP-0329: better error handling in onComponentAffiliationsGet 2020-09-14 09:23:23 +02:00
Goffi
4c5c6a081a plugin XEP-0077: fixed "check_certificate" handling 2020-09-13 22:49:12 +02:00
Goffi
5cc4890f0d doc: updated installation instructions 2020-09-13 22:49:11 +02:00
Goffi
f8a7232e7b install (setup.py): added missing extra_requires 2020-09-13 22:49:10 +02:00
Goffi
5ec9d7ffec plugin invitation: if "thumb_url" is not set, try to use one from list of interests 2020-09-05 20:23:25 +02:00
Goffi
6f139b80e1 plugin list of interests: normalize item ID + added get method 2020-09-05 20:22:23 +02:00
Goffi
35920d53af core (memory/memory): fixed assignations 2020-09-05 20:20:05 +02:00
Goffi
33eab526b9 component file sharing: generate thumbnails for videos 2020-08-25 08:55:16 +02:00
Goffi
644277a659 tools: new video module:
this module is really basic at the moment, and use `ffmpeg` if present to make thumbnails.
2020-08-25 08:54:13 +02:00
Goffi
ba8496ae36 plugin XEP-0264: only log "fix orientation" when the option is used 2020-08-25 08:52:46 +02:00
Goffi
ea351c6ff4 plugin XEP-0234: fixed mime type in buildFileElementFromDict 2020-08-25 08:51:35 +02:00
Goffi
e414de9fa9 plugin list of interest: fixed registerPubsub 2020-08-15 22:54:42 +02:00
Goffi
7e1a281885 changelog: added alternative media player (libervia) and invitation/delete (jp) 2020-08-15 20:30:20 +02:00