fix: add permissive properties for unaccessible modes
This commit is contained in:
parent
cd9686011c
commit
9ff04d53fb
6 changed files with 20 additions and 16 deletions
|
|
@ -5,8 +5,8 @@
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"POT-Creation-Date: 2025-12-22 15:24+0100\n"
|
"POT-Creation-Date: 2025-12-22 19:05+0100\n"
|
||||||
"PO-Revision-Date: 2025-12-22 15:28+0100\n"
|
"PO-Revision-Date: 2025-12-22 19:06+0100\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"Language: fr\n"
|
"Language: fr\n"
|
||||||
|
|
@ -16,23 +16,23 @@ msgstr ""
|
||||||
"Generated-By: pygettext.py 1.5\n"
|
"Generated-By: pygettext.py 1.5\n"
|
||||||
"X-Generator: Poedit 3.8\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}\""
|
msgid "cannot find \"user_data\" module \"{0}\""
|
||||||
msgstr "ne peut trouve le module \"user_data\" \"{0}\""
|
msgstr "ne peut trouve le module \"user_data\" \"{0}\""
|
||||||
|
|
||||||
#: src/rougail/cli/__main__.py:245
|
#: src/rougail/cli/__main__.py:249
|
||||||
msgid ""
|
msgid ""
|
||||||
"interactive user data \"{0}\" is loader before uninteractive user data "
|
"interactive user data \"{0}\" is loader before uninteractive user data "
|
||||||
"\"{1}\""
|
"\"{1}\""
|
||||||
msgstr ""
|
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}\""
|
"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}\""
|
msgid "cannot find cli file for \"output_name\" module \"{0}\""
|
||||||
msgstr "ne peut trouve le fichier cli pour le module \"output_name\" \"{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}"
|
msgid "ERROR: {0}"
|
||||||
msgstr "ERREUR : {0}"
|
msgstr "ERREUR : {0}"
|
||||||
|
|
||||||
|
|
@ -99,8 +99,8 @@ msgstr ""
|
||||||
"Pour identifier les différentes variables, on utilise la description de la "
|
"Pour identifier les différentes variables, on utilise la description de la "
|
||||||
"variable. Il y a quatre type de descriptions:\n"
|
"variable. Il y a quatre type de descriptions:\n"
|
||||||
"\n"
|
"\n"
|
||||||
" - name_and_description : qui contient le nom de la variable suivi de sa "
|
" - name_and_description : qui contient le nom de la variable suivi de "
|
||||||
"description\n"
|
"sa description\n"
|
||||||
" - path : le chemin de la variable\n"
|
" - path : le chemin de la variable\n"
|
||||||
" - name : le nom de la variable\n"
|
" - name : le nom de la variable\n"
|
||||||
" - description : la description de la variable"
|
" - description : la description de la variable"
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"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"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
|
@ -15,19 +15,19 @@ msgstr ""
|
||||||
"Generated-By: pygettext.py 1.5\n"
|
"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}\""
|
msgid "cannot find \"user_data\" module \"{0}\""
|
||||||
msgstr ""
|
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}\""
|
msgid "interactive user data \"{0}\" is loader before uninteractive user data \"{1}\""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/rougail/cli/__main__.py:281
|
#: src/rougail/cli/__main__.py:285
|
||||||
msgid "cannot find cli file for \"output_name\" module \"{0}\""
|
msgid "cannot find cli file for \"output_name\" module \"{0}\""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/rougail/cli/__main__.py:306
|
#: src/rougail/cli/__main__.py:310
|
||||||
msgid "ERROR: {0}"
|
msgid "ERROR: {0}"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -195,10 +195,14 @@ def load_user_data(rougailconfig):
|
||||||
subconfig.property.setdefault(
|
subconfig.property.setdefault(
|
||||||
frozenset(subconfig.property.default("read_only", "remove") | (read_write - read_only)), "read_only", "remove"
|
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:
|
if read_only:
|
||||||
subconfig.property.setdefault(
|
subconfig.property.setdefault(
|
||||||
frozenset(subconfig.property.default("read_only", "append") | read_only), "read_only", "append"
|
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:
|
if read_write or read_only:
|
||||||
subconfig.property.read_write()
|
subconfig.property.read_write()
|
||||||
except:
|
except:
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -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\""]
|
||||||
|
|
@ -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\""]
|
||||||
Loading…
Reference in a new issue