Kay0u
6a5971bb3c
better fix for lockfile
2020-01-07 01:15:26 +08:00
decentral1se
54b8cab133
Apply Black on all the code base
2019-11-25 17:21:13 +01:00
Alexandre Aubin
9fda7f4716
Merge branch 'stretch-unstable' into simplify-auth-mechanism
2019-11-19 16:55:06 +01:00
Alexandre Aubin
808f6203fd
Allow to customize color for CLI prompts
2019-09-27 17:40:44 +02:00
Alexandre Aubin
6d44c46740
Be able to run test on the API
2019-08-22 03:27:31 +02:00
Alexandre Aubin
6899217fa0
Make linter gods happy
2019-08-21 16:22:16 +02:00
Alexandre Aubin
bcaf8b2e4a
Move clean_session with the other session management method + add a check for session.hashed for additional security ?
2019-08-20 19:42:32 +02:00
Alexandre Aubin
ebc37ea014
Move init_authenticator to actionsmap.py for clarity to avoid spreading this shit over 72 files
2019-08-20 05:55:06 +02:00
Alexandre Aubin
65fe685a90
Get rid of this 'help' madness and more generally this three-tuppled containing various tuples and weird stuff ... use a simple dict everywhere instead
2019-08-20 05:43:17 +02:00
Alexandre Aubin
f6bfabc7aa
Merge pull request #207 from decentral1se/refactor-global-loading
...
Refactor global loading
2019-08-01 12:20:38 +02:00
Laurent Peuch
1f10529209
[fix] syntax error, again -_-'
2019-07-29 03:56:10 +02:00
Laurent Peuch
599bec33b8
[fix] bad key, we aren't in self.local situation
2019-07-29 02:44:04 +02:00
Luke Murphy
e027a188a9
Refactor exposing of global configuration
...
We do this to make it easier to control this value during testing. We
should not import these values at package setup time. Nor should we
import them at package load time.
This change introduces a new API for the Moulinette package. The
moulinette.env accessor. This is a breaking change. However, I've
searched around and can't seem to find any usage that relies directly on
these properties being available.
I've tried to maintain API backwards compatibility in all cases
otherwise.
2019-07-28 22:04:07 +02:00
Laurent Peuch
2403ee1b7d
[mod] during tests failed to translate string is an error
2019-07-28 21:29:50 +02:00
Laurent Peuch
fdf9a719f1
[mod] way better failed translation error messages
2019-07-28 21:27:41 +02:00
Laurent Peuch
a8966b8643
[mod] add more message to inform users that some stuff are a warning
2019-07-28 21:14:24 +02:00
Bram
76c8620861
Merge pull request #205 from YunoHost/warning_long_lock
...
Warn the user about long locks for a way better UX
2019-07-28 18:56:43 +02:00
Bram
b7d415dc2c
[ux] make warning clearer because users often report it
2019-07-26 18:29:19 +02:00
Laurent Peuch
ca49ffefc1
[ux] also inform the user once we've stopped waiting for the lock
2019-07-25 04:15:52 +02:00
Laurent Peuch
44878d7148
[ux] add a warning mecanism to inform the user about the current lock
2019-07-20 05:53:00 +02:00
Laurent Peuch
02c320f553
[mod] add debug log telling we are trying to aquired the log
2019-07-20 05:52:08 +02:00
Luke Murphy
14c4fafd39
Localise import to avoid setuptools install error
2019-07-14 01:31:38 +02:00
Alexandre Aubin
0e16546af9
[fix] Microdecision : do not miserably crash if the lock does not exist when attempting to release it
2019-04-08 18:15:00 +02:00
Alexandre Aubin
1ce8ea9ffc
Merge branch 'stretch-unstable' into autopep8
2018-12-15 15:13:25 +01:00
Alexandre Aubin
5ec49c1b80
StandardError -> Exception (for python3 compat')
2018-12-14 16:24:04 +00:00
Alexandre Aubin
fddf64a20d
__raw_msg__ -> raw_msg
2018-12-14 14:20:37 +00:00
Alexandre Aubin
22bfd1dbef
autopep8 + a few manual tweaks
2018-12-13 19:14:29 +00:00
Alexandre Aubin
df7ee42254
Allow to bypass m18n if a raw message is given
2018-12-12 19:36:43 +00:00
Alexandre Aubin
a58d4dbb87
Remove old m18n.g and errno
2018-12-12 13:54:01 +00:00
Irina LAMBLA
a6cce50977
corrections
2018-12-12 13:37:00 +00:00
Irina LAMBLA
6614d8c76b
use StandardError
2018-12-12 13:37:00 +00:00
Irina LAMBLA
dcf4c8fcf0
Enh Simplify moulinette error
2018-12-12 13:37:00 +00:00
Laurent Peuch
c3f4f8e58b
[mod] return the informated string, it's give more information to the user
2018-08-06 02:38:24 +02:00
Laurent Peuch
a26258e418
[mod] fallback on english on failure
2018-08-06 02:38:07 +02:00
Laurent Peuch
abc2085631
[mod] stronger warning messages
2018-08-06 02:37:38 +02:00
Laurent Peuch
8f2d094e0c
[fix] don't crash when failed to format a translatable string
2018-08-06 02:31:22 +02:00
Laurent Peuch
9b700e0a37
[fix] sometime we get an empty string
2018-06-25 15:16:31 +02:00
Laurent Peuch
7207a3218d
[fix] pep8
2018-01-05 02:22:42 +01:00
Alexandre Aubin
0665cb4dd5
Allow to give lock to multiple processes ( #154 )
...
* Check also son_of_locked for self
* Check again that we're son of locked when trying to acquire lock
* Support having multiple PIDs in lock file..
* Fix/improve son_of_lock detection
2017-10-08 23:49:21 +02:00
Laurent Peuch
276b2013fe
[mod] try to play with build-depends
2017-08-22 15:52:11 +02:00
Laurent Peuch
c73cca3f40
[fix] bad hack to handle the limitation of our buildchain
2017-08-20 03:48:20 +02:00
Alexandre Aubin
d28990350c
pep8 <3
2017-08-13 17:18:17 -04:00
Alexandre Aubin
ab47f30f18
Forget about the old BYPASS_LOCK thing from actionmap
2017-08-13 16:40:44 -04:00
Alexandre Aubin
9006f8980f
[enh] Check if parent already has lock
2017-08-13 16:22:58 -04:00
Laurent Peuch
7266e7de15
[mod] rename variable
2017-07-26 05:31:38 +02:00
Laurent Peuch
e2ff1dca39
[mod] simplify code again
2017-07-26 05:28:56 +02:00
Laurent Peuch
b8b3c8db9f
[mod] simplify, called code should never raised
2017-07-26 05:27:11 +02:00
Laurent Peuch
c326ae2c2b
[mod] clean code of try/cache mess
2017-07-26 05:25:09 +02:00
Laurent Peuch
ffdb535918
[mod] simplifu code, remove global pkg object
2017-07-26 05:14:36 +02:00
Laurent Peuch
b4d36b2d3e
[mod] more eleguant way of removing globals: from moulinette import m18n, pkg works
2017-07-25 21:19:51 +02:00