nested validation and error messages

This commit is contained in:
2026-05-13 11:52:20 +02:00
parent 8b3eb63f62
commit a7accaa20c
2 changed files with 126 additions and 80 deletions

View File

@@ -1,6 +1,7 @@
# %%
import dataclasses as dc
import enum
import re
from PySide6.QtCore import QDate, Qt
@@ -27,6 +28,18 @@ class FormField:
self.label += "*"
# %%
DYNAMIC_LIST_KEY_PATTERN = r"-\[(\d+)\]"
key = "Schulbildung-[12].7b8da0f7-7a0e-4f71-878a-85616099e849"
matches = re.search(DYNAMIC_LIST_KEY_PATTERN, key)
# %%
matches
# %%
matches.group(1)
# %%
t_str = "asd.yxcxc.dfgjj.aasdsdsdsd.sdsdsdsd"
splitted = t_str.split(".")