diff --git a/cgi-bin/uebung07/posts-store.py b/cgi-bin/uebung07/posts-store.py index e37a8dd..8e2d3da 100755 --- a/cgi-bin/uebung07/posts-store.py +++ b/cgi-bin/uebung07/posts-store.py @@ -11,7 +11,6 @@ param = False try: form = cgi.FieldStorage(encoding='utf8') - # nehm die Sachen aus create und bau sie in einen Post :) title = form.getvalue('title') content = form.getvalue('content') tags = form.getvalue('tags')[1:].split("#") @@ -21,7 +20,7 @@ try: nicetime = strftime("%A, %d.%B %Y %H:%M Uhr") file_content = { "title": title, - "prettytime": nicetime, #das ist nicht unbedingt sinnvoll, aber mir gefällts. + "prettytime": nicetime, "content" : content, "tags" : tags } @@ -34,6 +33,6 @@ try: except: print("Content-type: text/html\n") if not(param): - print("Nothing here. You reached the end of the Internet. Turn back. H.P. Backster. Hyper, Hyper.") + print("Nothing to see here") else: - print("Feeehhhleeeerrrr") + print("Error") diff --git a/cgi-bin/uebung07/tags-show.py b/cgi-bin/uebung07/tags-show.py index d7e1e84..f23a06e 100755 --- a/cgi-bin/uebung07/tags-show.py +++ b/cgi-bin/uebung07/tags-show.py @@ -48,5 +48,5 @@ else: print() print('Alle Posts!
') -print('Falls du noch nicht alle Tags siehst ist dies nach diesem Klick der Fall!
') +print('Alle Tags anzeigen.
') print('Neuen Post verfassen!')