From 948f0658dab5463c7d22ede48c0d0ba6a609af10 Mon Sep 17 00:00:00 2001 From: darthsandmann Date: Sun, 6 Nov 2016 23:38:59 +0100 Subject: [PATCH] Praktikum 2 Progress --- .../app/__pycache__/__init__.cpython-35.pyc | Bin 0 -> 143 bytes .../__pycache__/application.cpython-35.pyc | Bin 0 -> 3132 bytes .../app/__pycache__/database.cpython-35.pyc | Bin 0 -> 3285 bytes .../ppm1/app/__pycache__/view.cpython-35.pyc | Bin 0 -> 1432 bytes Praktikum2/ppm1/app/application.py | 97 +++++++++++- Praktikum2/ppm1/app/database.py | 149 +++++++++--------- Praktikum2/ppm1/app/view.py | 32 ++-- Praktikum2/ppm1/data/companies/0.json | 8 + Praktikum2/ppm1/data/companies/last.json | 1 + Praktikum2/ppm1/data/offerings/0.json | 8 + Praktikum2/ppm1/data/offerings/last.json | 1 + Praktikum2/ppm1/data/students/33.json | 6 + Praktikum2/ppm1/data/students/34.json | 6 + Praktikum2/ppm1/data/students/35.json | 6 + Praktikum2/ppm1/data/students/last.json | 1 + Praktikum2/ppm1/data/teachers/0.json | 7 + Praktikum2/ppm1/data/teachers/last.json | 1 + Praktikum2/ppm1/server.py | 45 ++++++ Praktikum2/ppm1/templates/detail.tpl | 37 +++++ Praktikum2/ppm1/templates/index.tpl | 32 ++++ Praktikum2/ppm1/templates/list.tpl | 68 ++++++++ Praktikum2/ppm1/tmp/detail.html | 30 ++++ Praktikum2/ppm1/tmp/list.html | 54 +++++++ 23 files changed, 498 insertions(+), 91 deletions(-) create mode 100644 Praktikum2/ppm1/app/__pycache__/__init__.cpython-35.pyc create mode 100644 Praktikum2/ppm1/app/__pycache__/application.cpython-35.pyc create mode 100644 Praktikum2/ppm1/app/__pycache__/database.cpython-35.pyc create mode 100644 Praktikum2/ppm1/app/__pycache__/view.cpython-35.pyc create mode 100644 Praktikum2/ppm1/data/companies/0.json create mode 100644 Praktikum2/ppm1/data/companies/last.json create mode 100644 Praktikum2/ppm1/data/offerings/0.json create mode 100644 Praktikum2/ppm1/data/offerings/last.json create mode 100644 Praktikum2/ppm1/data/students/33.json create mode 100644 Praktikum2/ppm1/data/students/34.json create mode 100644 Praktikum2/ppm1/data/students/35.json create mode 100644 Praktikum2/ppm1/data/students/last.json create mode 100644 Praktikum2/ppm1/data/teachers/0.json create mode 100644 Praktikum2/ppm1/data/teachers/last.json create mode 100644 Praktikum2/ppm1/server.py create mode 100644 Praktikum2/ppm1/templates/detail.tpl create mode 100644 Praktikum2/ppm1/templates/index.tpl create mode 100644 Praktikum2/ppm1/templates/list.tpl create mode 100644 Praktikum2/ppm1/tmp/detail.html create mode 100644 Praktikum2/ppm1/tmp/list.html diff --git a/Praktikum2/ppm1/app/__pycache__/__init__.cpython-35.pyc b/Praktikum2/ppm1/app/__pycache__/__init__.cpython-35.pyc new file mode 100644 index 0000000000000000000000000000000000000000..245d0994fc141ad8dbbfaf2a1f254917fcbf431a GIT binary patch literal 143 zcmWgR<>flwFCD=E1dl-k3@`#24nSPY0whux7=kq!{Z=v*frJsnFB|>P;?$yI{p`d{ z{o>@z)TDfU_skNX#3cQ2S10{|qQvZy%6JPbr?AnXN*j-!GUENjn)uU&v*{nbP{pOEp~W*v zT66-XCL4m8bHN&mNo`D6q1QssS1!zBsY+puUK@I;dSR(f;as_;c459jVY8gCm-F)! zE|hxbC|o2tM?NH%D7>aEY*M&P;fm%V485xquJJkE0)^`oUe`;DytMCbWb+S)!(P-0 z(r6GfAdDA3{A*zBU?iI$DV!xbBk~2M@FM4d1K}Leb}eN>Dl@`EWiewt2gHEdN@VZo zH&QiB{&Tqr&)7P#!>~T)C;aqRqWQ@h$hbChD%K8aPiiL9#|^ z{x?yQx`wtsGZF7u7pj=kXWU?e*h#V%MMKn$|Dan+b~xhv@GlST%g10QzMP|K3rEbU zBZc|7FXwPVI|B6Whhcbkt8gHjFKyqIX%O|aLs-)RSb~Z+0d9z;pS=7#MD+RL#=FSR3HqoX7eg0sdSmY}adO=cYpRDaffz|O~g0)gBEXHhi8 z6`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L{QmzMakP#)k9#>y5YPCcqC^83y8goYhk_34R%5 z00C22gG_^5hd>8LJ{>XxauWg**kNKoV!}Bto4_qN!)+aUee793F&2zG*4Qt3US^Tx zh&PvbSQOKF8PlHS&=Bn7tcGa#GJl{^yhNiUNCDGhPQog4VkvAwf@y7qEl9eMI11xp z54pHa=XJ_IhH(}%j7@`{I?e-})h#rbIW*bmgL!s_7-E z;IS-3%Bu_JdwOG(k$fj8YGY-pKCIZNcy{~^goDc$d;Y76i^`uysb9q@KPvpgR1Tvf z|IL#}{tFRJWjdYb_x-ZW@A*+#`X7+@p#0p}VVKTR8HN<6GSGn5Wp#g1*I?<6DLoB( zc5tc!pCgc}#xn-2tx#$((P3gx*$7UtTC7vai-$>zCf2WiL0uS3P*n>~HBw~kbw+jX zKyW-#O7ArGahma2l=EP#n9Fi5Lq3a(B%Phq=3E}%*%LMrXpAJ1k=JR=Qlv8}=)4=P zs07h$j7gEs)V{zHe3o$G>7q*>d#SnD#GgvY*7V40wM6=eD+>*14!g_h&80A{`|{i= zDM_PbxryMnEO^FLEEcXhpcQ27>7&|hgFHi4pPagz(sLlo%+tgch7j9m5EI)!a$Ja| z-oJ*ME{R&K-d-oF_Qb@J#u{5Hk=V7ps*Y>yX`|ZC(n=~i?5|9mwvr*faUH`|Dv?%S zStmj6|Ks2!Tt;d3k1Q5?K34DCUg5E`&ZFHh@@#5<>aQ?toG{FbWS$Xr!|?q)%36=3$2W|s_InH58ABj^TEyHw + + + + Praxisphasenmanager (PPM) + + + + + +

+ ${data['category']}: Ihre Daten +

+
+

+ Das Formular ausfüllen/korrigieren und auf "speichern" klicken: +

+
+ + + % for field in data['content']: +
+ + +
+ % endfor + +
+ Zurueck + +
+
+
+ + \ No newline at end of file diff --git a/Praktikum2/ppm1/templates/index.tpl b/Praktikum2/ppm1/templates/index.tpl new file mode 100644 index 0000000..f83d09d --- /dev/null +++ b/Praktikum2/ppm1/templates/index.tpl @@ -0,0 +1,32 @@ + + + + + Praxisphasenmanager (PPM) + + + + + + +

+ Praxisphasenmanager (PPM) +

+ + + \ No newline at end of file diff --git a/Praktikum2/ppm1/templates/list.tpl b/Praktikum2/ppm1/templates/list.tpl new file mode 100644 index 0000000..de79f28 --- /dev/null +++ b/Praktikum2/ppm1/templates/list.tpl @@ -0,0 +1,68 @@ + + + + + Praxisphasenmanager (PPM) + + + + + + +

+ Praxisphasenmanager (PPM) +

+
+

+ Übersicht + % if data['category'] == 'students': + Studenten + % elif data['category'] == 'teachers': + Lehrende + % elif data['category'] == 'companies': + Firmen + % elif data['category'] == 'offerings': + Angebote + % endif +

+
+ + + + % if data['content']!= None: + % for heading in data['headings']: + % if heading!='id': + + % endif + % endfor + % else: + + % endif + + % if data['content']!= None: + + % for entries in data['content']: + + % for entry in data['content'][entries]: + % if entry!='id': + + % endif + % endfor + + % endfor + + % endif + + +
${heading}Bisher kein Inhalt
${data['content'][entries][entry]}
+
+ +
+ Neu + Startseite +
+
+ + \ No newline at end of file diff --git a/Praktikum2/ppm1/tmp/detail.html b/Praktikum2/ppm1/tmp/detail.html new file mode 100644 index 0000000..52034d6 --- /dev/null +++ b/Praktikum2/ppm1/tmp/detail.html @@ -0,0 +1,30 @@ + + + + + Registrierung + + + + + +

+ Ihre Daten +

+
+

+ Das Formular ausfüllen/korrigieren und auf "speichern" klicken: +

+
+ + + +
+ + +
+ + + \ No newline at end of file diff --git a/Praktikum2/ppm1/tmp/list.html b/Praktikum2/ppm1/tmp/list.html new file mode 100644 index 0000000..d236bdb --- /dev/null +++ b/Praktikum2/ppm1/tmp/list.html @@ -0,0 +1,54 @@ + + + + + Praxisphasenmanager (PPM) + + + + + + +

+ SiteHeader +

+
+

+ Übersicht +

+
+ + + + + + + + + + + +
th1th2th3th4th5th6
+
+ + +
+ + \ No newline at end of file