From 0fd6405f4eb0b23d81e0a163245ab101cf295d2a Mon Sep 17 00:00:00 2001 From: sidya82 Date: Sun, 2 Mar 2014 21:53:08 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20supe?= =?UTF-8?q?rTornado.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superTornado.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superTornado.py b/superTornado.py index 501efb1..d3b5e5e 100644 --- a/superTornado.py +++ b/superTornado.py @@ -20,13 +20,13 @@ import os confAveug = LoadConf().estAveugle() ficLog = Login() -class BaseHandler(tornado.web.RequestHandler, tornado.httpserver.HTTPRequest): +class BaseHandler(tornado.web.RequestHandler): def get_current_user(self): return self.get_secure_cookie("user") class MainHandler(BaseHandler): def get(self): - print "-> IP = " + self.remote_ip() + print "-> IP = " self.render("v/index.html") def post(self):