modifié: superTornado.py
This commit is contained in:
parent
96da224f28
commit
7dc1645680
@ -5,16 +5,16 @@ import tornado.httpserver
|
|||||||
class MainHandler(tornado.web.RequestHandler):
|
class MainHandler(tornado.web.RequestHandler):
|
||||||
def get(self):
|
def get(self):
|
||||||
self.render("index.html")
|
self.render("index.html")
|
||||||
|
|
||||||
class LoginHandler(tornado.web.RequestHandler):
|
|
||||||
def post(self):
|
def post(self):
|
||||||
#iden = self.get_argument("id",'')
|
iden = self.get_argument("id",'')
|
||||||
#mdp = self.get_argument("mdp",'')
|
mdp = self.get_argument("mdp",'')
|
||||||
self.write("Le pseudo est :")
|
self.write("Le pseudo est :", iden)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
application = tornado.web.Application([
|
application = tornado.web.Application([
|
||||||
(r"/", MainHandler),
|
(r"/", MainHandler),
|
||||||
(r"/login", LoginHandler),
|
|
||||||
])
|
])
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Reference in New Issue
Block a user