fix: add permissive properties for unaccessible modes

This commit is contained in:
egarette@silique.fr 2025-12-22 19:06:54 +01:00
parent cd9686011c
commit 9ff04d53fb
6 changed files with 20 additions and 16 deletions

View file

@ -5,8 +5,8 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2025-12-22 15:24+0100\n"
"PO-Revision-Date: 2025-12-22 15:28+0100\n"
"POT-Creation-Date: 2025-12-22 19:05+0100\n"
"PO-Revision-Date: 2025-12-22 19:06+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr\n"
@ -16,23 +16,23 @@ msgstr ""
"Generated-By: pygettext.py 1.5\n"
"X-Generator: Poedit 3.8\n"
#: src/rougail/cli/__main__.py:237
#: src/rougail/cli/__main__.py:241
msgid "cannot find \"user_data\" module \"{0}\""
msgstr "ne peut trouve le module \"user_data\" \"{0}\""
#: src/rougail/cli/__main__.py:245
#: src/rougail/cli/__main__.py:249
msgid ""
"interactive user data \"{0}\" is loader before uninteractive user data "
"\"{1}\""
msgstr ""
"Les données utilisateur interactifs \"{0}\" sont chargées avant les données "
"les données utilisateur interactifs \"{0}\" sont chargées avant les données "
"utilisateur non interactif \"{1}\""
#: src/rougail/cli/__main__.py:281
#: src/rougail/cli/__main__.py:285
msgid "cannot find cli file for \"output_name\" module \"{0}\""
msgstr "ne peut trouve le fichier cli pour le module \"output_name\" \"{0}\""
#: src/rougail/cli/__main__.py:306
#: src/rougail/cli/__main__.py:310
msgid "ERROR: {0}"
msgstr "ERREUR : {0}"
@ -99,8 +99,8 @@ msgstr ""
"Pour identifier les différentes variables, on utilise la description de la "
"variable. Il y a quatre type de descriptions:\n"
"\n"
" - name_and_description : qui contient le nom de la variable suivi de sa "
"description\n"
" - name_and_description : qui contient le nom de la variable suivi de "
"sa description\n"
" - path : le chemin de la variable\n"
" - name : le nom de la variable\n"
" - description : la description de la variable"

View file

@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2025-12-22 15:31+0100\n"
"POT-Creation-Date: 2025-12-22 19:06+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -15,19 +15,19 @@ msgstr ""
"Generated-By: pygettext.py 1.5\n"
#: src/rougail/cli/__main__.py:237
#: src/rougail/cli/__main__.py:241
msgid "cannot find \"user_data\" module \"{0}\""
msgstr ""
#: src/rougail/cli/__main__.py:245
#: src/rougail/cli/__main__.py:249
msgid "interactive user data \"{0}\" is loader before uninteractive user data \"{1}\""
msgstr ""
#: src/rougail/cli/__main__.py:281
#: src/rougail/cli/__main__.py:285
msgid "cannot find cli file for \"output_name\" module \"{0}\""
msgstr ""
#: src/rougail/cli/__main__.py:306
#: src/rougail/cli/__main__.py:310
msgid "ERROR: {0}"
msgstr ""

View file

@ -195,10 +195,14 @@ def load_user_data(rougailconfig):
subconfig.property.setdefault(
frozenset(subconfig.property.default("read_only", "remove") | (read_write - read_only)), "read_only", "remove"
)
for p in read_write:
subconfig.permissive.add(p)
if read_only:
subconfig.property.setdefault(
frozenset(subconfig.property.default("read_only", "append") | read_only), "read_only", "append"
)
for p in read_only:
subconfig.permissive.add(p)
if read_write or read_only:
subconfig.property.read_write()
except:

View file

@ -1 +1 @@
["family \"configuration rougail-json\" is disabled, so cannot access to \"test mandatories variables before display in json\", it will be ignored when loading from the YAML file \"warnings.yml\""]
["family \"configuration rougail-json\" has property disabled, so cannot access to \"test mandatories variables before display in json\", it will be ignored when loading from the YAML file \"warnings.yml\""]

View file

@ -1 +1 @@
["family \"configuration rougail-json\" is disabled, so cannot access to \"test mandatories variables before display in json\", it will be ignored when loading from the YAML file \"warnings3.yml\"", "\"validators\" is a calculation for my_variable but has no description in \"structures/file.yml\" and \"structures_warnings/file.yml\""]
["family \"configuration rougail-json\" has property disabled, so cannot access to \"test mandatories variables before display in json\", it will be ignored when loading from the YAML file \"warnings3.yml\"", "\"validators\" is a calculation for my_variable but has no description in \"structures/file.yml\" and \"structures_warnings/file.yml\""]