Compare commits

..

No commits in common. "6830bbcc12b3afe097c336be04cf58ef22d0b2b8" and "cd9686011c7c27e482a20c5905c5cac2438ce1e5" have entirely different histories.

9 changed files with 18 additions and 28 deletions

View file

@ -1,9 +1,3 @@
## 0.2.0a36 (2025-12-22)
### Fix
- add permissive properties for unaccessible modes
## 0.2.0a35 (2025-12-22) ## 0.2.0a35 (2025-12-22)
### Fix ### Fix

View file

@ -5,8 +5,8 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"POT-Creation-Date: 2025-12-22 19:05+0100\n" "POT-Creation-Date: 2025-12-22 15:24+0100\n"
"PO-Revision-Date: 2025-12-22 19:06+0100\n" "PO-Revision-Date: 2025-12-22 15:28+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:241 #: src/rougail/cli/__main__.py:237
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:249 #: src/rougail/cli/__main__.py:245
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:285 #: src/rougail/cli/__main__.py:281
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:310 #: src/rougail/cli/__main__.py:306
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 " " - name_and_description : qui contient le nom de la variable suivi de sa "
"sa description\n" "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"

View file

@ -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 19:06+0100\n" "POT-Creation-Date: 2025-12-22 15:31+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:241 #: src/rougail/cli/__main__.py:237
msgid "cannot find \"user_data\" module \"{0}\"" msgid "cannot find \"user_data\" module \"{0}\""
msgstr "" msgstr ""
#: src/rougail/cli/__main__.py:249 #: src/rougail/cli/__main__.py:245
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:285 #: src/rougail/cli/__main__.py:281
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:310 #: src/rougail/cli/__main__.py:306
msgid "ERROR: {0}" msgid "ERROR: {0}"
msgstr "" msgstr ""

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project] [project]
name = "rougail.cli" name = "rougail.cli"
version = "0.2.0a36" version = "0.2.0a35"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}] authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md" readme = "README.md"
description = "CLI for Rougail" description = "CLI for Rougail"

View file

@ -195,14 +195,10 @@ 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:

View file

@ -1 +1 @@
__version__ = "0.2.0a36" __version__ = "0.2.0a35"

View file

@ -1 +1 @@
["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\""] ["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\""]

View file

@ -1 +1 @@
["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\""] ["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\""]