Commit graph

239 commits

Author SHA1 Message Date
Psycojoker
cadb449528 🎨 Format Python code with Black 2024-03-07 02:37:34 +01:00
Alexandre Aubin
c06e1a91c9 auth: prevent stupid issue where outdated cookie usage would trigger error 500 intead of 401, resulting in a ~bug after Yunohost self-upgrade and the webadmin is confused about the API not being up again 2023-07-10 21:28:54 +02:00
alexAubin
52bbab7df1 🎨 Format Python code with Black 2023-02-01 19:30:09 +00:00
Alexandre Aubin
4c03e16de9 Handle calling 'yunohost' with no args more gracefully 2023-01-06 17:33:31 +01:00
alexAubin
2d2eab4c30 🎨 Format Python code with Black 2023-01-05 18:15:55 +00:00
Alexandre Aubin
baa00c0812 Fix flake8 2022-12-24 19:28:26 +01:00
Alexandre Aubin
ac0ac24996 Merge branch 'dev' into dont-take-lock-for-read-operations 2022-12-24 00:52:08 +01:00
Alexandre Aubin
676a19dc28 Don't take lock for read/GET operations 2022-12-24 00:02:24 +01:00
alexAubin
161c5d5c2b 🎨 Format Python code with Black 2022-12-23 23:01:46 +00:00
Alexandre Aubin
80873777c6 Code simplification/explicitation 2022-12-23 22:34:49 +01:00
Alexandre Aubin
50b19a95c6 Remove the 'global argument' mechanism ... we only use it for --version and it's just batshit overly complicated for what this achieves... 2022-12-23 20:31:58 +01:00
Alexandre Aubin
cb9ecb468d cli: Add possibility to hide commands in --help 2022-02-08 14:45:02 +01:00
alexAubin
45dbcd98f4 🎨 Format Python code with Black 2022-01-19 22:14:17 +00:00
Alexandre Aubin
9ccc914ca1
Merge branch 'bullseye' into moar_session_management_changes 2022-01-11 12:56:24 +01:00
Alexandre Aubin
35351696ac Merge branch 'dev' into bullseye 2021-12-31 15:21:57 +01:00
Kay0u
be0006fdb9
fix some warnings 2021-12-30 14:39:38 +01:00
alexAubin
ea6eaa6b1e 🎨 Format Python code with Black 2021-12-28 23:46:17 +00:00
Alexandre Aubin
83a95fd8c9 Unused import 2021-12-26 18:13:48 +01:00
Laurent Peuch
9855b6d7f5 [mod] stop using old style class 2021-12-24 01:18:11 +01:00
Laurent Peuch
8127e7cd1a [mod] run pyupgrade on source code 2021-12-24 01:18:03 +01:00
Alexandre Aubin
964483b23b Fix issues in previous commits regarding authentication mecanism 2021-12-23 16:57:43 +01:00
Alexandre Aubin
2fc9611b53 api: Move cookie session management logic to the authenticator for more flexibility 2021-12-22 19:06:33 +01:00
Alexandre Aubin
9fcc9630bd Rework actionsmap and m18n init, drop multiple actionsmap support 2021-11-17 19:24:26 +01:00
Alexandre Aubin
b2c67369a8 Merge branch 'dev' into bullseye 2021-11-15 19:14:40 +01:00
Alexandre Aubin
c5700f1ba3 Fix issue with accented chars in form .. decode() is not needed anymore? 2021-11-15 18:31:56 +01:00
Alexandre Aubin
c5f577c04f Fix 'Missing credentials parameter' bug : request.POST is buggy when value contains special chars ... request.params appears to be more reliable 2021-11-15 18:07:46 +01:00
Alexandre Aubin
c44e025210 cli prompt: fix bottom toolbar displayed even if message is empty 2021-10-20 18:31:29 +02:00
Alexandre Aubin
5d61b74fde ci: unused imports 2021-10-20 18:25:25 +02:00
Alexandre Aubin
d901d28add
Adapt prompt_toolkit call because now using the v3.x of the lib 2021-10-19 20:18:20 +02:00
alexAubin
b224dd356a 🎨 Format Python code with Black 2021-09-23 19:48:10 +00:00
Alexandre Aubin
c4b559cf6b Fix test + missing dependency to prompt-toolkit in setup.py 2021-09-23 00:47:11 +02:00
Alexandre Aubin
1f7bb1d54c Rework cli prompt() again 2021-09-21 20:13:39 +02:00
Alexandre Aubin
965e9db70e tests: add mypy + misc fixes to make test pass 2021-09-17 16:17:53 +02:00
ljf
08f7866f77 [fix] Prefill input with long color question 2021-09-15 14:40:42 +02:00
alexAubin
58fa26a5d5 🎨 Format Python code with Black 2021-09-03 13:53:54 +00:00
Alexandre Aubin
8909577b91 cli prompt: misc code improvements 2021-09-03 15:49:36 +02:00
Alexandre Aubin
e08d0139f6
cli promt: improve coe for yes/no parsing 2021-09-03 15:30:35 +02:00
ljf
882caf4786 [enh] Add prefill and multiline in prompt 2021-08-30 14:43:14 +02:00
Alexandre Aubin
e3ef1ced95
Merge pull request #288 from YunoHost/actions/black
Format Python code with Black
2021-08-28 12:35:37 +02:00
Alexandre Aubin
9b4b6d7009
Unused var 2021-08-28 12:35:28 +02:00
alexAubin
52c9e2a813 🎨 Format Python code with Black 2021-08-27 22:56:45 +00:00
Alexandre Aubin
6e1e034e10 More cookie/auth code cleanup 2021-08-28 00:56:08 +02:00
Alexandre Aubin
9c13472703 Actually delete cookie when logging out 2021-08-27 23:10:58 +02:00
Alexandre Aubin
8562c05d3b Add httponly to API cookies 2021-08-27 22:46:15 +02:00
alexAubin
fe84eba4ab 🎨 Format Python code with Black 2021-08-27 20:14:09 +00:00
Alexandre Aubin
0eaccab3b8 python3-argcomplete seems unused in practice... 2021-08-27 22:05:23 +02:00
Alexandre Aubin
a263039958 Code cleanup / reorganize 2021-08-27 21:17:39 +02:00
Alexandre Aubin
b0fd78657e Moaaaar lint/test fixes 2021-08-27 19:45:07 +02:00
Alexandre Aubin
3c4520a6d8 Moar fikses 2021-08-27 19:14:23 +02:00
Alexandre Aubin
b54f35dc32 Unused i18n keys 2021-08-27 19:02:16 +02:00