From 3bcfa4f26b6c99fb312eea17ec45e0a7200b9fef Mon Sep 17 00:00:00 2001 From: sidya82 Date: Fri, 28 Feb 2014 07:52:19 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/superTornado.py b/superTornado.py index f60eca4..def8c19 100644 --- a/superTornado.py +++ b/superTornado.py @@ -93,11 +93,11 @@ class DisconnectionHandler(BaseHandler): self.set_cookie("user", "0") self.redirect("/") -class WSocketHandler(tornado.websocket.WebSocketHandler): +class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler): def open(self) : - """"if not self.current_user : + if not self.current_user : self.close() - return""" + return print "->Websocket opened" try :