Compare commits

...

2 commits

5 changed files with 13 additions and 7 deletions

View file

@ -1,3 +1,9 @@
## 1.2.0a13 (2025-03-27)
### Fix
- allow no user_datas installation (for example to generate doc)
## 1.2.0a12 (2025-03-19) ## 1.2.0a12 (2025-03-19)
### Feat ### Feat

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project] [project]
name = "rougail" name = "rougail"
version = "1.2.0a12" version = "1.2.0a13"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}] authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md" readme = "README.md"
description = "A consistency handling system that was initially designed in the configuration management" description = "A consistency handling system that was initially designed in the configuration management"

View file

@ -178,7 +178,10 @@ class ParserVariable:
"structural_commandline.add_extra_options" "structural_commandline.add_extra_options"
] ]
self.structurals = rougailconfig["step.structural"] self.structurals = rougailconfig["step.structural"]
self.user_datas = rougailconfig["step.user_data"] try:
self.user_datas = rougailconfig["step.user_data"]
except:
self.user_datas = []
try: try:
self.output = rougailconfig["step.output"] self.output = rougailconfig["step.output"]
except: except:

View file

@ -452,7 +452,7 @@ class _VariableCalculation(Calculation):
) )
if variable and not isinstance(variable, objectspace.variable): if variable and not isinstance(variable, objectspace.variable):
if isinstance(variable, objectspace.family): if isinstance(variable, objectspace.family):
msg = f'the variable "{variable.path}" is in fact a family in attribute "{self.attribute_name}" for "{self.path}"' msg = f'a variable "{variable.path}" is needs in attribute "{self.attribute_name}" for "{self.path}" but it\'s a family'
raise DictConsistencyError(msg, 47, self.xmlfiles) raise DictConsistencyError(msg, 47, self.xmlfiles)
else: else:
msg = f'unknown object "{variable}" in attribute "{self.attribute_name}" for "{self.path}"' msg = f'unknown object "{variable}" in attribute "{self.attribute_name}" for "{self.path}"'

View file

@ -74,7 +74,6 @@ class Paths:
def get_with_dynamic( def get_with_dynamic(
self, self,
path: str, path: str,
# identifier_path: str,
current_path: str, current_path: str,
version: str, version: str,
namespace: str, namespace: str,
@ -145,9 +144,7 @@ class Paths:
if "{{ suffix }}" in path: if "{{ suffix }}" in path:
path = path.replace("{{ suffix }}", "{{ identifier }}") path = path.replace("{{ suffix }}", "{{ identifier }}")
elif not path in self._data: elif not path in self._data:
current_path = None new_path = parent_path = current_path = None
parent_path = None
new_path = current_path
identifiers = [] identifiers = []
for name in path.split("."): for name in path.split("."):
if current_path: if current_path: