Compare commits
2 commits
06c87718d6
...
62620d9b2e
| Author | SHA1 | Date | |
|---|---|---|---|
| 62620d9b2e | |||
| bed7a1d3b5 |
8 changed files with 20 additions and 8 deletions
|
|
@ -1,3 +1,9 @@
|
|||
## 1.2.0a29 (2025-06-20)
|
||||
|
||||
### Fix
|
||||
|
||||
- UserDatas, do now set modified option in second round
|
||||
|
||||
## 1.2.0a28 (2025-06-18)
|
||||
|
||||
### Fix
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[project]
|
||||
name = "rougail"
|
||||
version = "1.2.0a28"
|
||||
version = "1.2.0a29"
|
||||
|
||||
[tool.commitizen]
|
||||
name = "cz_conventional_commits"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail-base"
|
||||
version = "1.2.0a28"
|
||||
version = "1.2.0a29"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "A consistency handling system that was initially designed in the configuration management"
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "rougail"
|
||||
version = "1.2.0a28"
|
||||
version = "1.2.0a29"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
description = "A consistency handling system that was initially designed in the configuration management"
|
||||
classifiers = [
|
||||
|
|
@ -18,7 +18,7 @@ classifiers = [
|
|||
dependencies = [
|
||||
"ruamel.yaml ~= 0.18.6",
|
||||
"pydantic ~= 2.9.2",
|
||||
"rougail-base == 1.2.0a28",
|
||||
"rougail-base == 1.2.0a29",
|
||||
]
|
||||
|
||||
[tool.flit.sdist]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
__version__ = "1.2.0a28"
|
||||
__version__ = "1.2.0a29"
|
||||
|
|
|
|||
|
|
@ -28,13 +28,12 @@ from pydantic import (
|
|||
)
|
||||
import tiramisu
|
||||
from tiramisu.config import get_common_path
|
||||
from ..utils import get_jinja_variable_to_param, calc_multi_for_type_variable, undefined
|
||||
from ..utils import get_jinja_variable_to_param, calc_multi_for_type_variable, undefined, PROPERTY_ATTRIBUTE
|
||||
from ..i18n import _
|
||||
from ..error import DictConsistencyError, VariableCalculationDependencyError
|
||||
from ..tiramisu import CONVERT_OPTION
|
||||
|
||||
BASETYPE = Union[StrictBool, StrictInt, StrictFloat, StrictStr, None]
|
||||
PROPERTY_ATTRIBUTE = ["frozen", "hidden", "disabled", "mandatory"]
|
||||
|
||||
|
||||
def get_convert_option_types():
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|||
from typing import List
|
||||
from re import findall
|
||||
|
||||
from tiramisu import Calculation
|
||||
from tiramisu import Calculation, owners
|
||||
from tiramisu.error import (
|
||||
PropertiesOptionError,
|
||||
AttributeOptionError,
|
||||
|
|
@ -46,11 +46,13 @@ class UserDatas:
|
|||
*,
|
||||
return_values_not_error=False,
|
||||
user_datas_type: str="user_datas",
|
||||
only_default: bool=False,
|
||||
):
|
||||
self.values = {}
|
||||
self.errors = []
|
||||
self.warnings = []
|
||||
self.show_secrets = False
|
||||
self.only_default = only_default
|
||||
if user_datas_type == "user_datas":
|
||||
self._populate_values(user_datas)
|
||||
else:
|
||||
|
|
@ -198,6 +200,9 @@ class UserDatas:
|
|||
path = option.path()
|
||||
if path not in self.values:
|
||||
continue
|
||||
if self.only_default and option.owner.get() != owners.default:
|
||||
self.values.pop(path)
|
||||
continue
|
||||
options = self.values[path].get("options", {})
|
||||
if (
|
||||
options.get("allow_secrets_variables", True) is False
|
||||
|
|
|
|||
|
|
@ -44,6 +44,8 @@ from .error import DictConsistencyError
|
|||
|
||||
NAME_REGEXP = re.compile(r"^[a-z0-9_]*$")
|
||||
|
||||
PROPERTY_ATTRIBUTE = ["frozen", "hidden", "disabled", "mandatory"]
|
||||
|
||||
|
||||
def valid_variable_family_name(
|
||||
name: str,
|
||||
|
|
|
|||
Loading…
Reference in a new issue