Dev #7

Merged
foefl merged 74 commits from dev into main 2026-07-31 14:19:01 +00:00
2 changed files with 582 additions and 157 deletions
Showing only changes of commit 3bbed94048 - Show all commits
+12 -2
View File
@@ -102,13 +102,13 @@ def set_page_state(
class WrapperModule(Protocol):
def _sync_state_to_GUI(self) -> None:
def _sync_state_to_GUI(self, *args, **kwargs) -> None:
"""build states for all child modules and use their `load_state` method
to initialise them with the new data
"""
...
def _sync_GUI_to_state(self) -> None:
def _sync_GUI_to_state(self, *args, **kwargs) -> None:
"""call `get_state` method on all child modules and assign respective
properties to state of parent module
"""
@@ -127,6 +127,10 @@ class WrapperModule(Protocol):
"""
...
def lock(self) -> None: ...
def unlock(self) -> None: ...
class Module(WrapperModule, Protocol):
def validate(self) -> list[str]:
@@ -199,6 +203,7 @@ class Page_NewInitRec_State(PageState[Module]):
class Page_InitRecCompany_State(PageState[Module]):
session: Session
un_id: RecId | None = None
locked: bool
@dc.dataclass(slots=True, kw_only=True)
@@ -219,12 +224,14 @@ class AutoForm_State(PageState[Module]):
cfg: AutoFormConfig
rec_id: RecId | None = None
form_data: dict[str, Any] | None = None
locked: bool
@dc.dataclass(slots=True, kw_only=True)
class Page_InitRecPerson_State(PageState[Module]):
session: Session
pers_id: RecId | None = None
locked: bool
@dc.dataclass(slots=True, kw_only=True)
@@ -239,6 +246,7 @@ class Page_Consulting_State(PageState[Module]):
default_factory=list
)
ist_geloescht: bool = False
locked: bool
@dc.dataclass(slots=True, kw_only=True)
@@ -257,12 +265,14 @@ class Page_Consulting_ConsultingSession_State(PageState[Module]):
anmerkungen: str | None = None
rueckmeldung: str | None = None
ist_geloescht: bool = False
locked: bool
@dc.dataclass(slots=True, kw_only=True)
class Page_Consulting_Table_State(PageState["Page_Consulting_ConsultingSession"]):
session: Session
row_states: list[Page_Consulting_ConsultingSession_State] = dc.field(default_factory=list)
locked: bool
@dc.dataclass(slots=True, kw_only=True)
+509 -94
View File
File diff suppressed because it is too large Load Diff