Compare commits
2 commits
9c7fb1d505
...
d35fe16cd9
| Author | SHA1 | Date | |
|---|---|---|---|
| d35fe16cd9 | |||
| 04aa9444a3 |
3 changed files with 13 additions and 1 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
## 1.2.0a11 (2025-02-17)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- add get remove properties
|
||||||
|
|
||||||
## 1.2.0a10 (2025-02-17)
|
## 1.2.0a10 (2025-02-17)
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "rougail"
|
name = "rougail"
|
||||||
version = "1.2.0a10"
|
version = "1.2.0a11"
|
||||||
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"
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,12 @@ class Property:
|
||||||
) -> None:
|
) -> None:
|
||||||
self._properties.setdefault(path, {})[property_] = value
|
self._properties.setdefault(path, {})[property_] = value
|
||||||
|
|
||||||
|
def get(self, path: str) -> None:
|
||||||
|
return self._properties.setdefault(path, {})
|
||||||
|
|
||||||
|
def remove(self, path: str, property_: str) -> None:
|
||||||
|
del self._properties[path][property_]
|
||||||
|
|
||||||
def __getitem__(
|
def __getitem__(
|
||||||
self,
|
self,
|
||||||
path: str,
|
path: str,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue