From 6ad28b54a46695b7d7267ba056faf906b06dfe5c Mon Sep 17 00:00:00 2001 From: sidya82 Date: Thu, 27 Feb 2014 16:24:53 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20site?= =?UTF-8?q?/index.html=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20superT?= =?UTF-8?q?ornado.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/index.html | 2 +- superTornado.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/site/index.html b/site/index.html index 00b6b85..7d2164b 100644 --- a/site/index.html +++ b/site/index.html @@ -7,7 +7,7 @@

Acces securise camera

-
+ ID :
MDP :
diff --git a/superTornado.py b/superTornado.py index 025ee74..23b05a6 100644 --- a/superTornado.py +++ b/superTornado.py @@ -4,6 +4,10 @@ import tornado.web class MainHandler(tornado.web.RequestHandler): def get(self): self.render("site/index.html") + def post(self): + iden = self.get_argument("id") + mdp = self.get_argument("mdp") + self.write("Le pseudo est :", iden) application = tornado.web.Application([ (r"/", MainHandler),