Commit graph

71 commits

Author SHA1 Message Date
Alexandre Aubin
caa2d0d91b MoulinetteError / OSError never accepted keyword arguments such as exc_info :/ ... 2018-12-12 19:01:28 +00:00
Alexandre Aubin
2dd1d8ccfe Unused errno + remaining unecessary m18n.n 2018-12-12 19:01:28 +00:00
Irina LAMBLA
4ba309a221 modif MoulinetteError to YunohostError 2018-12-12 19:01:28 +00:00
Irina LAMBLA
9eec09da81 - "m18n.n" 2018-12-12 18:56:26 +00:00
Irina LAMBLA
0468d6b900 sed 3 lines
deletion of line breaks to be able to use "sed" :
sed -i "N; s@MoulinetteError(.*m18n\.n(\n* *@MoulinetteError(m18n.n(@g"
2018-12-12 18:56:26 +00:00
Irina LAMBLA
4bc3427e3e moulinette MoulinetteError multilignes"
sed -i "N; s@MoulinetteError(.*m18n\.n(\n* *\(.*\)))@MoulinetteError(\1)@g" <fichiers>
2018-12-12 18:56:26 +00:00
Alexandre Aubin
0d83d35c4d
Merge pull request #595 from YunoHost/fix_test
[fix] Repair tests
2018-12-12 16:53:47 +01:00
Alexandre Aubin
bf676c2fd8
Merge pull request #552 from kir0ul/enh-human-readable-date
[enh] Human readable date
2018-12-12 13:12:02 +01:00
ljf
60843edc0f [enh] Use aware UTC date in backup settings and app 2018-12-09 21:08:36 +01:00
Josué Tille
03b1a2867c Fix tests 2018-12-07 22:33:13 +01:00
Alexandre Aubin
325678f541 More explicit name for setting 2018-11-28 00:04:25 +01:00
ljf
8e0086d493 [fix] Allow user to trigger the moment when they remove dsa 2018-11-28 00:00:30 +01:00
Alexandre Aubin
ded9b58575 Use level 1 as default for everybody 2018-10-26 14:31:16 +00:00
Alexandre Aubin
a780ebd900
Number of char 2018-10-26 01:47:52 +02:00
Alexandre Aubin
8a0c4509fd Those arent used ? 2018-10-25 19:30:18 +00:00
ljf
783c512628 [enh] PasswordValidator without Moulinette 2018-08-28 08:56:12 +02:00
ljf
67e82111c1 [enh] Validate pwd with Online Pwned List 2018-08-28 03:09:43 +02:00
ljf
06276a621b [enh] Check password in cli/api 2018-08-27 03:40:50 +02:00
Laurent Peuch
baf0d098f5 [mod] explicitely import previously globals magic variables 2017-07-25 21:32:20 +02:00
Jean-Baptiste
64ab4a82b3 [fix] Yypos in en.json (#314)
* serialzed => serialized
* typo close global_settings_key_doesnt_exists
* serialized/serialize & setings/settings
2017-05-31 17:06:40 +02:00
Laurent Peuch
f9437bbd33 Global settings (#229)
* [enh] add base to run tests
* [enh] start global settings proto
* [mod] has -> exists
* [enh] configure actionmap for settings module
* [enh] add a default values mecanism
* [enh] nicer yaml dump
* [mod] DRY
* [fix] moulinette doesn't respect positionned arguments
* [fix] typo
* [mod] don't print when it's not needed
* [enh] raise a moulinette exception when the key doesn't exists
* [mod] add todo comments
* [mod] no more default value
* [enh] namespace all global settings commands
* [mod] unix way, be quiet except when needed
* [fix] forgot to add namespace argument to settings-list
* [fix] fail_silently wasn't considered as a cli flag
* [mod] refactoring
* [enh] remove empty namespace on remove
* [enh] print a warning if attempt to list an empty namespace settings
* [mod] refactoring
* [enh] handle case where I can't open settings file
* [enh] handle case where I can't write settings file
* [enh] handle case where I can't serialized settings data into yaml
* [mod] add error return codes
* [enh] start to move to new architecture for settings
* [enh] uses a dict instead of a tuple for settings
* [mod] no more namespace in settings list
* [mod] settings.exists isn't relevant anymore
* [mod] settings.remove isn't relevant anymore
* [enh] fix settings and switch to json
* [enh] adapt settings set
* [enh] don't set a key that doesn't exists
* [enh] check type of keys before settings them
* [enh] start implement default
* [enh] handle case where key doesnt exist for default
* [enh] i18n for bad key type on settings set
* [enh] i18n for bad key type on settings set for enum
* [mod] exception for weird situation
* [mod] this message isn't used anymore
* [enh] i18n for unknown setting key from local settings
* [mod] style
* [enh] start to work on a reset mecanism
* [enh] complain if settings_reset is called without yes
* [fix] --yes of reset is a boolean option
* [enh] backup old settings before resetting
* [fix] bad usage of logger
* [enh] backup unknown settings
* [enh] move settings description in translations
* [enh] add tests for settings
* [enh] migrate to pytest assert style
* [fix] typo
* [doc] add some comments for not explicite part of the code
* [mod] possibilities -> choices for uniformised vocabulary
* [mod] follow rest semantic
* [doc] made namespace usage more explicit
* [fix] we don't use namespace key anymore
* [enh] make settings_default available in cli
* [fix] *really* be Rest semantic
* [doc] add docstrings to settings module functions
* [enh] reset-all and --full option
* [fix] Remove unused global_settings_reset_not_yes
2017-05-16 17:18:07 +02:00