From 76b81316c220f7228b84a6203618f64803759f26 Mon Sep 17 00:00:00 2001 From: foefl Date: Tue, 12 May 2026 14:29:16 +0200 Subject: [PATCH] short snippet test for widget registry --- prototypes/tests.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/prototypes/tests.py b/prototypes/tests.py index 41c09ad..b3e6016 100644 --- a/prototypes/tests.py +++ b/prototypes/tests.py @@ -27,6 +27,17 @@ class FormField: self.label += "*" +# %% +t_str = "asd.yxcxc.dfgjj.aasdsdsdsd.sdsdsdsd" +splitted = t_str.split(".") +part, rest = splitted[0], splitted[1:] + +part + +# %% +".".join([part] + rest) + + # %% FormField("name", "Projektbeschreibung", FormFieldType.LONGTEXT, required=True) # %%