modifié: superTornado.py

This commit is contained in:
sidya82 2014-02-28 07:52:19 +01:00
parent 0431210ab7
commit 3bcfa4f26b

View File

@ -93,11 +93,11 @@ class DisconnectionHandler(BaseHandler):
self.set_cookie("user", "0") self.set_cookie("user", "0")
self.redirect("/") self.redirect("/")
class WSocketHandler(tornado.websocket.WebSocketHandler): class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
def open(self) : def open(self) :
""""if not self.current_user : if not self.current_user :
self.close() self.close()
return""" return
print "->Websocket opened" print "->Websocket opened"
try : try :