Commit graph

492 commits

Author SHA1 Message Date
Alexandre Aubin
d0c569eead More cleaning up, test fixing 2021-06-13 18:51:13 +02:00
Alexandre Aubin
e2cb8cdfab Merge branch 'dev' into rework-authenticator-system 2021-06-13 15:34:22 +02:00
ljf
2c9ec9f638 [fix] Damn array args bug 2021-06-03 18:01:43 +02:00
Alexandre Aubin
5e1ed4c331
Merge pull request #275 from YunoHost/free-the-cpu
wait 1s for message in call_async_output
2021-05-27 16:47:34 +02:00
ljf (zamentur)
f91fad08da
[fix] Request params not decoded 2021-05-25 13:35:04 +02:00
ljf (zamentur)
d9789364b4
[fix] Unicode password doesn't log in 2021-05-17 12:18:51 +02:00
Kayou
04b7f7bc6f
wait 1s for message in call_async_output 2021-05-13 23:28:52 +02:00
Alexandre Aubin
135fae95a8 For some reason yunohost-api don't want to start due to recent changes in actionamp, apply this trick for subcategories just like we do for categories 2021-04-16 00:06:42 +02:00
Alexandre Aubin
e22aac9af0 Black 2021-03-23 00:24:33 +01:00
Alexandre Aubin
b17a6fa627 Attempt to fix test: handle argparse errors as validation errors 2021-03-23 00:12:15 +01:00
Alexandre Aubin
bc1bdbb247 Introduce validation errors, authentication errors, corresponding http codes 2021-03-12 03:55:52 +01:00
Alexandre Aubin
f790bde101 We don't need these wrapper classes, just call HTTPResponse directly 2021-03-12 03:14:34 +01:00
Alexandre Aubin
af0957c028 Rework and externalize the authenticator system 2021-03-09 05:43:09 +01:00
Kay0u
affb54f84d
fix tests 2021-03-01 10:45:50 +01:00
Alexandre Aubin
cafe68f30e Move LogPipe directly into process.py, we don't need to split that stuff on different files 2021-02-28 21:20:42 +01:00
Alexandre Aubin
e85b9f71d5 Handle the actual logging from the parent process, otherwise we run into a shitload of complex issues to interact with the websocket 2021-02-28 21:18:25 +01:00
Alexandre Aubin
9670357f98 No need to display this message 2021-02-28 16:58:50 +01:00
Alexandre Aubin
16c43a67f7 Only report missing/failed translation as a warning, no need to report as exception... 2021-02-28 16:54:54 +01:00
Alexandre Aubin
cde45de0ba Add m18n helper to check that a key exist 2021-02-28 16:54:19 +01:00
Alexandre Aubin
bdd048197d Misc logging fixes 2021-01-31 16:14:06 +01:00
Alexandre Aubin
e7a01c68f5 Revert "[mod] unify all subloggers under moulinette.core"
This reverts commit c88f127b8c691c6121229402be4375fdc62ed6bf.
2021-01-31 16:14:06 +01:00
Laurent Peuch
9a35d77a08 [mod] better error message 2021-01-31 16:14:06 +01:00
Laurent Peuch
10576f7138 [mod] unify all subloggers under moulinette.core 2021-01-31 16:14:06 +01:00
Alexandre Aubin
cf98095303
Merge pull request #269 from YunoHost/fix-argparse
Fix argparse
2021-01-31 14:41:11 +01:00
Kayou
90f894b541
Do not encode strings for plain output 2021-01-30 11:13:53 +01:00
Kay0u
53cbca2c1e
Add test without action 2021-01-26 21:19:26 +01:00
Kay0u
1a95e6e779
Merge branch 'dev' into fix-argparse 2021-01-26 21:04:39 +01:00
Kay0u
63ae3b677f
remove stdinfo 2021-01-26 16:38:36 +01:00
Kay0u
84d250c1c2
monkey patch _get_action_name 2021-01-26 12:05:25 +01:00
Kay0u
9077569c22
in python3 OrderedDict and array are not the same 2021-01-26 12:05:05 +01:00
Kayou
48d14f34d2
remove unused exception var 2021-01-25 23:24:24 +01:00
Kay0u
ce3971093d
call_async_output: we can't use stdinfo in kwargs, close stdout, stderr and stdinfo if subprocess.Popen raise an exception 2021-01-25 18:53:33 +01:00
Kay0u
c1c34c11e2
format code 2021-01-25 18:50:05 +01:00
Alexandre Aubin
ae4087d522
Merge pull request #257 from YunoHost/return-additional-error-data-to-api
Support more complex errors (be able to return additional data in a json structure)
2021-01-23 16:05:45 +01:00
Alexandre Aubin
0de154678c Black again, with the right version this time.. 2021-01-20 05:59:24 +01:00
Alexandre Aubin
677efcf6d6 Black? 2021-01-20 05:46:05 +01:00
Alexandre Aubin
570e53234a Drop support for python2 2021-01-20 05:35:35 +01:00
Alexandre Aubin
8105718705
Merge branch 'dev' into enh-python3 2021-01-19 23:04:25 +01:00
Alexandre Aubin
755a475e5d We don't really care that there's 'nothing to update in ldap' 2021-01-13 02:30:39 +01:00
Kay0u
9236727561
Fix https://github.com/YunoHost/yunohost/pull/1075#discussion_r551045491 2021-01-06 01:29:33 +01:00
Laurent Peuch
f9454da5e7 [mod] trash this UX madness that is error_see_logs and improve error messages 2021-01-01 15:24:49 +01:00
Alexandre Aubin
84f17f7830 Rework / simplify the whole story of call_async_output that was a complete mess and broken by Python 3 for some reason. New code should be much more simple and fix the synchronization between debug, info, warnings, and probably also more performant overall ? 2021-01-01 04:00:57 +01:00
Alexandre Aubin
d0b43f0e4a Merge branch 'dev' into enh-python3 2020-12-31 23:46:05 +01:00
Alexandre Aubin
0d58eff6a2 Misc encoding fixes 2020-12-31 23:45:48 +01:00
Laurent Peuch
2caf1234e8 [fix] no catchall exception 2020-12-31 23:44:23 +01:00
Laurent Peuch
8566eaaa1f [mod] don't use catchall exceptions episode 2 2020-12-31 13:25:05 +01:00
Laurent Peuch
82bc0e829a [mod] don't use catchall exceptions 2020-12-31 12:30:57 +01:00
Alexandre Aubin
c7ba45596c
Merge pull request #259 from YunoHost/format-code
format
2020-12-30 22:27:31 +01:00
Kay0u
c1669174c3
add options to write_to_json 2020-12-11 15:08:31 +01:00
Kay0u
b06a117c18
Remove unused exception 2020-12-04 22:21:08 +01:00