From 188485366930bdfc2cc8b6aac4afd347488acd05 Mon Sep 17 00:00:00 2001 From: "Kemo (decon-pc-71)" Date: Sun, 18 Jun 2023 16:00:22 +0200 Subject: [PATCH] [doc] work on doc and page --- README.rst | 6 ++---- README_DE.rst | 6 ++---- decore_base/sample/bases/person_base.py | 2 ++ docs/page/doctrees/environment.pickle | Bin 79350 -> 79165 bytes docs/page/doctrees/index.doctree | Bin 46259 -> 46074 bytes docs/page/html/index.html | 6 ++---- 6 files changed, 8 insertions(+), 12 deletions(-) diff --git a/README.rst b/README.rst index 1389206..c3aac5b 100644 --- a/README.rst +++ b/README.rst @@ -216,10 +216,8 @@ We now need an action to store the data of the new person and extend the code in def first_widget(): @decore.action(title='Save Person', icon='mdi-content-save', type='submit') def first_action(self, data): - item = First_model() - item.title = data['firstname'] + ' ' + data['lastname'] - item.firstname = data['firstname'] - item.lastname = data['lastname'] + item = First_model(data['item']) + item.title = item.firstname + ' ' + item.lastname if item.save(): return True, item.title + ' saved successfully' else: diff --git a/README_DE.rst b/README_DE.rst index 289a63e..88cc2b1 100644 --- a/README_DE.rst +++ b/README_DE.rst @@ -216,10 +216,8 @@ Wir benötigen nun eine Action um die Daten der neuen Person zu speichern und er def first_widget(): @decore.action(title='Save Person', icon='mdi-content-save', type='submit') def first_action(self, data): - item = First_model() - item.title = data['firstname'] + ' ' + data['lastname'] - item.firstname = data['firstname'] - item.lastname = data['lastname'] + item = First_model(data['item']) + item.title = item.firstname + ' ' + item.lastname if item.save(): return True, item.title + ' saved successfully' else: diff --git a/decore_base/sample/bases/person_base.py b/decore_base/sample/bases/person_base.py index 741a9c3..3c5b32c 100644 --- a/decore_base/sample/bases/person_base.py +++ b/decore_base/sample/bases/person_base.py @@ -18,6 +18,8 @@ def per_vi1_di3(): def per_vi1_di3_wi1(): @decore.action(type='submit') def per_vi1_di3_wi1_ac1(self, p_data): + t_item = Model(p_data['item']) + t_item.title = t_item.first_name + ' ' + t_item.last_name return True, 'Success!' @decore.action(title='Test action', icon='mdi-test-tube', type='standard', activator='default-menu') diff --git a/docs/page/doctrees/environment.pickle b/docs/page/doctrees/environment.pickle index 77d5434db82712f4ea86f1a62f47ff1df7b86e4f..b9986999f2f05748b68593d3d4253b6e532eecc0 100644 GIT binary patch delta 479 zcmezNnq}`R7M2FqsmvQ$3=LTi*I2B1x!KBa^&%!=mdyqG&M{8Dbz;Tjd$(rrrX-dm zMyqF*q~@x}YEJ%eTXb^IZ4MO>UoS1QsJJ9AF*j8~TR|NNwH3g^If)R_$qILNO^&?5 zOGP6$E8MYTWqiCj{$U2=T-@)o8e70j^{4x3b*9M?K;uPV@$={lQh67ofe}3~} zWc&?Q75QT?BjcaRia$gq`=$tQw)<7fI9c?U=H{orw=+%N^ILQC(SIq7+_h6QAdY>@ zGkIaC@8kt-TvMko+OSVmGi3mR$q$pmCeQvS33AJHKSsu4py5ErOn=YFIG>4?5oFQ! c#Y~L6jErpCH!?F`WCaNV9kP8oCu6)0086gMz5oCK delta 630 zcmd6h%PT}t9LIf+J9*^BG@cvXjjp^h3q;%~JI`4t(lp%~G8klLE02YhSp3}VytY=; zNmIhg+SaS2DbY2Gk-bvD&#V8F(cDrRa(r>-yP4=B_ zHYxF`!(;ICvsMsJN@v}=UmsM5J<~q_gzg2EhC{JxvCyiX}QT#;y=V$Vf3(Z2gA(;vSR(^EV0o?Gs&{;Z6ZeBMs z+|#^f;|;g9jJm?b)a%aUE9N2aK;7Xmo|3ftzMj$OV-fYZt+Zl#dC7wVh|<{Ol2GXF z)l?SQKrE>}jc5$7v>C~#W`~Wm=K%rqRU7R*FNiYn<89GSAf8ljy&Qm~w{pH1n*oL5 z6};*#$c%9mC%SmfyBk@?QC(VcXzF8~mg9X)0=Z&^q&cjH0iTExC#=;28!Q8f*q{l> YV3}A80Qo^V9s8C966L|mOt`8(0l)0$SO5S3 diff --git a/docs/page/doctrees/index.doctree b/docs/page/doctrees/index.doctree index ffe2404a54771004b13ff79a05e44841bf042d55..84101a1e90a3691fd9bb593a7beb3fb659d31006 100644 GIT binary patch delta 396 zcmdn|lIhoTCe{YlsqZ&$WQ}iN6yE%xg`b%>C9xziT0OHQHCH`Wb8=v_h^}5qW=T$} zf~^8bP%kaBsJJ9AF*j8~TR|NNwIRYei4f7raxDj`XVk9E!JTKB86R&}?A2tPtkBD~ zIi&9j6Wfanu`E}P$p?HiH-}GjWn_H4dG4g6jBIa!!V@?qCu$2%wwaMK`TmqgZ0{gK zbyg~qUr)_p{J1${+G$3%Pe9R!V1=7)X1Fo3eSz>FrVCG=J=2Bp3 zz@BOHngvpu zl9!m9svfJLt)LEs+6oYvoJ5$!uB<@NKS~9>~b{4QRqcj>!+xg(p9r z;llWN@k|IW(TiR&va>J(bvHwF$1m|`{0lby?2-gV_Q`rn UpE7c67Fov0!pOc^Zq*%50HN>58vpActiondef first_widget(): @decore.action(title='Save Person', icon='mdi-content-save', type='submit') def first_action(self, data): - item = First_model() - item.title = data['firstname'] + ' ' + data['lastname'] - item.firstname = data['firstname'] - item.lastname = data['lastname'] + item = First_model(data['item']) + item.title = item.firstname + ' ' + item.lastname if item.save(): return True, item.title + ' saved successfully' else: