generated from dopt-python/py311
Dev #7
@@ -102,13 +102,13 @@ def set_page_state(
|
|||||||
|
|
||||||
|
|
||||||
class WrapperModule(Protocol):
|
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
|
"""build states for all child modules and use their `load_state` method
|
||||||
to initialise them with the new data
|
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
|
"""call `get_state` method on all child modules and assign respective
|
||||||
properties to state of parent module
|
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):
|
class Module(WrapperModule, Protocol):
|
||||||
def validate(self) -> list[str]:
|
def validate(self) -> list[str]:
|
||||||
@@ -199,6 +203,7 @@ class Page_NewInitRec_State(PageState[Module]):
|
|||||||
class Page_InitRecCompany_State(PageState[Module]):
|
class Page_InitRecCompany_State(PageState[Module]):
|
||||||
session: Session
|
session: Session
|
||||||
un_id: RecId | None = None
|
un_id: RecId | None = None
|
||||||
|
locked: bool
|
||||||
|
|
||||||
|
|
||||||
@dc.dataclass(slots=True, kw_only=True)
|
@dc.dataclass(slots=True, kw_only=True)
|
||||||
@@ -219,12 +224,14 @@ class AutoForm_State(PageState[Module]):
|
|||||||
cfg: AutoFormConfig
|
cfg: AutoFormConfig
|
||||||
rec_id: RecId | None = None
|
rec_id: RecId | None = None
|
||||||
form_data: dict[str, Any] | None = None
|
form_data: dict[str, Any] | None = None
|
||||||
|
locked: bool
|
||||||
|
|
||||||
|
|
||||||
@dc.dataclass(slots=True, kw_only=True)
|
@dc.dataclass(slots=True, kw_only=True)
|
||||||
class Page_InitRecPerson_State(PageState[Module]):
|
class Page_InitRecPerson_State(PageState[Module]):
|
||||||
session: Session
|
session: Session
|
||||||
pers_id: RecId | None = None
|
pers_id: RecId | None = None
|
||||||
|
locked: bool
|
||||||
|
|
||||||
|
|
||||||
@dc.dataclass(slots=True, kw_only=True)
|
@dc.dataclass(slots=True, kw_only=True)
|
||||||
@@ -239,6 +246,7 @@ class Page_Consulting_State(PageState[Module]):
|
|||||||
default_factory=list
|
default_factory=list
|
||||||
)
|
)
|
||||||
ist_geloescht: bool = False
|
ist_geloescht: bool = False
|
||||||
|
locked: bool
|
||||||
|
|
||||||
|
|
||||||
@dc.dataclass(slots=True, kw_only=True)
|
@dc.dataclass(slots=True, kw_only=True)
|
||||||
@@ -257,12 +265,14 @@ class Page_Consulting_ConsultingSession_State(PageState[Module]):
|
|||||||
anmerkungen: str | None = None
|
anmerkungen: str | None = None
|
||||||
rueckmeldung: str | None = None
|
rueckmeldung: str | None = None
|
||||||
ist_geloescht: bool = False
|
ist_geloescht: bool = False
|
||||||
|
locked: bool
|
||||||
|
|
||||||
|
|
||||||
@dc.dataclass(slots=True, kw_only=True)
|
@dc.dataclass(slots=True, kw_only=True)
|
||||||
class Page_Consulting_Table_State(PageState["Page_Consulting_ConsultingSession"]):
|
class Page_Consulting_Table_State(PageState["Page_Consulting_ConsultingSession"]):
|
||||||
session: Session
|
session: Session
|
||||||
row_states: list[Page_Consulting_ConsultingSession_State] = dc.field(default_factory=list)
|
row_states: list[Page_Consulting_ConsultingSession_State] = dc.field(default_factory=list)
|
||||||
|
locked: bool
|
||||||
|
|
||||||
|
|
||||||
@dc.dataclass(slots=True, kw_only=True)
|
@dc.dataclass(slots=True, kw_only=True)
|
||||||
|
|||||||
+509
-94
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user