Commit graph

3,592 commits

Author SHA1 Message Date
Goffi
f29a6bfa17 bridge (dbus/frontend): reintrospect signature in case of guess error:
When a "Unable to guess signature […]" `ValueError` is raised during a method call, the
signatures are re-introspected. This should fix this issue when a frontend is launched
just after to the backend (this happens notably with tests).
2021-09-08 11:16:21 +02:00
Goffi
22bc31ca4b docker: set DBUS_SESSION_BUS_ADDRESS so that it uses remote TCP with local fallback:
When connecting to Docker service, first the `backend` container will be tried with TCP,
then an Unix Socket will be used as fallback.
The Unix Socket is put in Libervia local dir which is a volume shared between containers.
This way D-Bus can be used with a remote backend, or the backend can be run locally
(notably during build when accounts creation or other settings must be done via Libervia
CLI).
2021-09-08 11:16:00 +02:00
Goffi
317cbb59e8 docker: fixes following global renaming 2021-09-08 11:15:54 +02:00
Goffi
88afb112d8 doc (contributing): typo 2021-09-08 11:15:41 +02:00
Goffi
33c2fb105b doc (contributing): fix docker-compose-e2e.yml spelling 2021-09-08 11:15:24 +02:00
Goffi
dae3308751 plugin XEP-0277: use common.uri to parse comment URIs 2021-09-08 11:14:53 +02:00
Goffi
adad4494c3 tools (common/uri): fix uri parsing for Python 3.9+ 2021-09-08 11:14:47 +02:00
Goffi
a446d91c93 docker: Libervia revision can now be specified:
Using the `DOCKER_LIBERVIA_REV` environment variable, backend (and related repos) revision
can now be specified. By default (variable empty or not set), the current `tip` version is
used, and `dev` is used for tagging. If the variable is set, the revision will be used and
used for tagging the image.
2021-09-08 11:14:17 +02:00
Goffi
2152d57887 CLI: use global constants for output names 2021-09-08 11:13:35 +02:00
Goffi
25a31896cb cli: call bridge.getReady() after bridge connection 2021-09-01 13:46:43 +02:00
Goffi
547eb9feba bridge: bridge can now be set using environment variable:
The `LIBERVIA_BRIDGE_NAME` environment variable can now be used to specify the bridge to
use. If set and different from empty string, the environment has precedence over config
file value.

For `pb` bridge, the following environment variable can also be used:

- LIBERVIA_BRIDGE_PB_CONNECTION_TYPE
- LIBERVIA_BRIDGE_PB_HOST
- LIBERVIA_BRIDGE_PB_PORT
2021-08-28 15:26:02 +02:00
Goffi
404a2820cf doc: minor typo 2021-08-27 14:59:47 +02:00
Goffi
a6bf268df0 tests (run_e2e): update tmp dir prefix following name change 2021-08-27 14:48:39 +02:00
Goffi
506368275a tools (common/date_utils): parse now alone (when used without relative delta) 2021-08-27 14:48:38 +02:00
Goffi
165cd02ead doc (configuration): add public_url in config sample 2021-08-27 14:48:29 +02:00
Goffi
29dd678af9 doc (overview): comment mentions of web app (not relevant anymore, for now) + web frontend name change 2021-08-27 14:46:56 +02:00
Goffi
c8572b8f21 CLI: fix section used for config following name change 2021-08-27 14:46:52 +02:00
Goffi
cf5213d4fe plugin XEP-0346: fix deprecated import 2021-08-02 21:47:22 +02:00
Goffi
4348af32f2 docker: fix Dockerfile following repositories redirections 2021-08-02 21:47:16 +02:00
Goffi
2491003474 Added tag v0.8.0b1 for changeset efe2445b053c 2021-06-18 15:15:13 +02:00
Goffi
846dbe478f v0.8.0b1 release 2021-06-18 15:10:33 +02:00
Goffi
89dfeaa155 install: fix pygobject dependency 2021-06-18 15:08:40 +02:00
Goffi
7a7ea682e9 /!\ package is being renamed to libervia-backend following global name change /!\ 2021-06-18 14:44:01 +02:00
Goffi
ddf227b88c install: set upper limit for dependencies versions 2021-06-18 14:38:51 +02:00
Goffi
5c37493c06 misc: added freedesktop metadata files 2021-06-18 13:03:32 +02:00
Goffi
211c9c8079 core (memory/cache): don't crash on EOFError in getMetadata 2021-06-17 10:35:42 +02:00
Weblate
56faa95883 i18n: Added translation using Weblate (Slovak) 2021-06-16 13:49:26 +00:00
Goffi
61d0c37ba2 i18n: update French catalog 2021-06-15 15:05:12 +02:00
Goffi
0941dccfc1 i18n: extraction update 2021-06-14 18:37:25 +02:00
Goffi
7adbf3ead8 core, frontends: fix invalid translatable strings.
Some f-strings where used in translatable text, this has been fixed by using explicit
`format()` call (using a script based on `tokenize`).

As tokenize messes with spaces, a reformating tool (`black`) has been applied to some
files afterwards.
2021-06-14 18:35:12 +02:00
Goffi
8d8541015c app manager (docker/weblate): add WEBLATE_ENABLE_HTTPS:
The value can be set in `libervia.conf` with `weblate_enable_https`. It defaults to "1".
2021-06-14 12:19:21 +02:00
Goffi
46b643fc59 app manager (docker/weblate): use new files feature to set settings-override.py:
This file is used to set `USE_X_FORWARDED_HOST`, which is necessary to make Weblate work
correctly being an Apache (and potentially other HTTP servers) reverse proxy (otherwise we
have CSRF errors, cf.  https://github.com/WeblateOrg/weblate/issues/1912).
2021-06-12 15:14:57 +02:00
Goffi
98fb1b4091 plugin app manager: add a way to create files:
a `files` field can now be used to create files on the fly. Its value must be a dict where
key are file names, and values are an other dict with file data.

For now file data can only use the `content` key. Value of content will be written to the file.
If a file already exists, it is not overwritten.
2021-06-12 15:10:49 +02:00
Goffi
35659893be plugin app manager: "public_url" must NOT have a schema 2021-06-11 17:39:59 +02:00
Goffi
6c2d81696c doc: fix remaining SàT references/typos + add libervia-cli missing commands 2021-06-11 09:21:41 +02:00
Goffi
7365f67601 misc: update .hgignore 2021-06-11 09:19:43 +02:00
Goffi
6426103f12 plugin XEP-0313: on cold start (without known archive) we only request 50 last messages 2021-06-10 15:44:30 +02:00
Goffi
7e622ae5d1 plugin XEP-0054: fix call to JID serialisation method 2021-06-10 15:43:28 +02:00
Goffi
c1de4dfcc4 plugin nat port: rename file to plugin_misc_nat_port.py to make the name valid 2021-06-09 18:39:13 +02:00
Goffi
398bd91f03 doc (installation): update instruction to use requirements + fix name in a few places 2021-06-09 17:31:52 +02:00
Goffi
aedc7eaf23 install (requirements): update + add setuptools_scm 2021-06-09 17:30:52 +02:00
Goffi
5004e3465e install (setup): add setuptools_scm to install dependencies if in dev version 2021-06-09 17:30:27 +02:00
Goffi
8b3d900922 cli: update constants to use new name 2021-06-09 17:29:29 +02:00
Goffi
c32defe690 plugin XEP-0054: fix update call 2021-06-09 11:35:49 +02:00
Goffi
d5f0d7ec8e core (xmpp): show "Libervia" without the "(backend)" component in version 2021-06-09 11:27:22 +02:00
Goffi
bed5aa94a6 doc (cli/profile): add autoconnection in example 2021-06-09 10:04:10 +02:00
Goffi
d22bd6c96d memory(sqlite): fix encoding when loading pickled data 2021-06-09 10:01:56 +02:00
Goffi
510e3e9bdc plugin XEP-0277: "user" part of author jid is used for author name when later is missing 2021-06-06 22:06:28 +02:00
Goffi
2155acd45b plugin forums: use serialised data for extra in forumTopicsGet 2021-06-06 19:35:19 +02:00
Goffi
93e4021b86 plugin XEP-0277: don't wrap DataError in failure.Failure in parseCommentUrl as it is not catched correctly:
`failure.Failure` is subclass of `BaseException` but not of `Exception`, as a result
`except Exception` doesn't catch it correctly. This is fixed by not wrapping `DataError`
in `failure.Failure` anymore.
2021-06-04 17:18:44 +02:00