Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0d7585b
typing: Helper__AggregateAllOptionValues is updated
dmitry-lipetsk Jul 6, 2026
be1184c
formatting
dmitry-lipetsk Jul 6, 2026
1ca18b2
typing: DataHandler__GetOptionValue__Simple
dmitry-lipetsk Jul 6, 2026
cede817
formatting
dmitry-lipetsk Jul 6, 2026
53d3772
explicit returns
dmitry-lipetsk Jul 6, 2026
5b148e4
FileData::T_OPTIONS_BY_NAME
dmitry-lipetsk Jul 6, 2026
9d26f96
ConfigurationData::T_xxx
dmitry-lipetsk Jul 6, 2026
ac4b470
PostgresConfigurationOptions is fixed
dmitry-lipetsk Jul 6, 2026
4da7701
PostgresConfigurationInclude::Delete returns None
dmitry-lipetsk Jul 6, 2026
5e1d7ce
PostgresConfigurationInclude_Base::Delete returns None
dmitry-lipetsk Jul 6, 2026
5847c85
PostgresConfigurationFile_Base::Internal__CheckAlive returns None
dmitry-lipetsk Jul 6, 2026
6504757
PostgresConfigurationSetOptionValueResult_Base is updated
dmitry-lipetsk Jul 6, 2026
1594e6c
PostgresConfigurationSetOptionValueResult::Option can return None
dmitry-lipetsk Jul 6, 2026
83c3ab4
PostgresConfigurationObject::get_Parent can return None
dmitry-lipetsk Jul 6, 2026
09f5b37
Internal__GetOptionHandlerToPrepareGetValue is fixed
dmitry-lipetsk Jul 6, 2026
3dc4dea
tagOptionHandlers::__init__(... write) is fixed
dmitry-lipetsk Jul 6, 2026
889046c
tagOptionHandlers is updated (typing)
dmitry-lipetsk Jul 6, 2026
fb283c4
PostgresConfiguration_Base__AllFilesIterator::T_FILE_DATA_ITERATOR
dmitry-lipetsk Jul 6, 2026
a623a16
PostgresConfiguration_Base__AllOptionsIterator::T_OPTION_DATA_ITERATOR
dmitry-lipetsk Jul 6, 2026
1e12673
PostgresConfiguration_Base__AllOptionsIterator is fixed
dmitry-lipetsk Jul 6, 2026
2911227
PostgresConfiguration_Base__AllOptions is fixed
dmitry-lipetsk Jul 6, 2026
bc8f574
formatting
dmitry-lipetsk Jul 6, 2026
bd21543
PostgresConfiguration_Base__AllFiles is fixed
dmitry-lipetsk Jul 6, 2026
3ef3389
PostgresConfiguration_Base__AllFiles is updated
dmitry-lipetsk Jul 6, 2026
34b0823
typing
dmitry-lipetsk Jul 6, 2026
52ea3cb
typing
dmitry-lipetsk Jul 6, 2026
0d490e3
Helper__AddSimpleOption__FileLine is fixed (delete: withLine=False)
dmitry-lipetsk Jul 6, 2026
22811a7
Helper__SetUniqueOptionValueItem__Common is fixed
dmitry-lipetsk Jul 6, 2026
c65aa58
Helper__SetUniqueOptionPreparedValueItem__Exact is corrected
dmitry-lipetsk Jul 6, 2026
49a0b31
Helper__SetUniqueOptionValueItem__File is updated (cleanup)
dmitry-lipetsk Jul 6, 2026
1d0ab2c
formatting
dmitry-lipetsk Jul 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/abstract/v00/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_Configuration(self) -> PostgresConfiguration:
RaiseError.MethodIsNotImplemented(__class__, "get_Configuration")

# --------------------------------------------------------------------
def get_Parent(self) -> PostgresConfigurationObject:
def get_Parent(self) -> typing.Optional[PostgresConfigurationObject]:
RaiseError.MethodIsNotImplemented(__class__, "get_Parent")


Expand Down Expand Up @@ -49,7 +49,7 @@ def __init__(self):

# interface -----------------------------------------------------------
@property
def Option(self) -> PostgresConfigurationOption:
def Option(self) -> typing.Optional[PostgresConfigurationOption]:
RaiseError.GetPropertyIsNotImplemented(__class__, "Option")

# ---------------------------------------------------------------------
Expand Down Expand Up @@ -144,7 +144,7 @@ def __len__(self) -> int:
RaiseError.MethodIsNotImplemented(__class__, "__len__")

# --------------------------------------------------------------------
def __iter__(self) -> PostgresConfigurationFileLinesIterator:
def __iter__(self) -> PostgresConfigurationOptionsIterator:
RaiseError.MethodIsNotImplemented(__class__, "__iter__")


Expand All @@ -161,7 +161,7 @@ def get_File(self) -> PostgresConfigurationFile:
RaiseError.MethodIsNotImplemented(__class__, "get_File")

# --------------------------------------------------------------------
def Delete(self, withLine: bool):
def Delete(self, withLine: bool) -> None:
assert type(withLine) is bool
RaiseError.MethodIsNotImplemented(__class__, "Delete")

Expand Down
30 changes: 25 additions & 5 deletions src/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ class FileStatus(enum.Enum):


class FileData(ObjectData):
T_OPTIONS_BY_NAME = typing.Dict[str, OptionData]

m_Parent: ConfigurationData

m_Status: FileStatus
Expand All @@ -212,7 +214,7 @@ class FileData(ObjectData):
m_Path: str
m_Lines: typing.List[FileLineData]

m_OptionsByName: typing.Dict[str, OptionData]
m_OptionsByName: T_OPTIONS_BY_NAME

# --------------------------------------------------------------------
def __init__(self, parent: ConfigurationData, path: str):
Expand Down Expand Up @@ -256,15 +258,33 @@ def IsAlive(self) -> bool:


class ConfigurationData(ObjectData):
T_OPTION_OR_OPTIONS = typing.Union[
OptionData,
typing.List[OptionData],
]

T_ALL_OPTIONS_BY_NAME = typing.Dict[
str,
T_OPTION_OR_OPTIONS,
]

T_FILE_OR_FILES = typing.Union[
FileData,
typing.List[FileData],
]

T_ALL_FILES_BY_NAME = typing.Dict[
str,
T_FILE_OR_FILES,
]

m_DataDir: str
m_OsOps: ConfigurationOsOps

m_Files: typing.List[FileData]

m_AllOptionsByName: typing.Dict[
str, typing.Union[OptionData, typing.List[OptionData]]
]
m_AllFilesByName: typing.Dict[str, typing.Union[FileData, typing.List[FileData]]]
m_AllOptionsByName: T_ALL_OPTIONS_BY_NAME
m_AllFilesByName: T_ALL_FILES_BY_NAME

# --------------------------------------------------------------------
def __init__(self, data_dir: str, osOps: ConfigurationOsOps):
Expand Down
Loading