From 4df402ca1cb9ae2d479c7be691c7026f293dc3c6 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Sun, 2 Mar 2014 21:35:25 +0100 Subject: [PATCH] =?UTF-8?q?modifi=C3=A9:=20=20=20=20=20=20=20=20=20superTo?= =?UTF-8?q?rnado.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 b0ae1a3..0ba4836 100644 --- a/superTornado.py +++ b/superTornado.py @@ -42,7 +42,7 @@ class MainHandler(BaseHandler): print "->An unauthorized user try to access" self.redirect("/unauthorized") -class VideoHandler(BaseHandler): +class VideoHandler(BaseHandler,tornado.websocket.WebSocketHandler): def get(self): if not self.current_user : self.redirect("/") @@ -109,7 +109,7 @@ class VideoHandler(BaseHandler): self.write_message("error") -class UnauthorizedHandler(BaseHandler,tornado.websocket.WebSocketHandler): +class UnauthorizedHandler(BaseHandler): def get(self): self.render("v/illegal.html")