modifié: superTornado.py
This commit is contained in:
parent
1c52cd5174
commit
9c261054e0
@ -95,6 +95,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
|
||||
print '->Send visual alarm authorized user'
|
||||
print 'maison.request("GET", "micom/lamp.php?room=salon1&order=1")'
|
||||
print "->Authorized user access"
|
||||
self.clear_cookie("user")
|
||||
self.send_image()
|
||||
|
||||
def on_message(self,mesg):
|
||||
@ -117,7 +118,6 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
|
||||
print '->Send visual alarm deconnection user'
|
||||
print 'maison.request("GET", "micom/lamp.php?room=salon1&order=0")'
|
||||
print"->"+iden+" Deconnection"
|
||||
self.clear_cookie("user")
|
||||
|
||||
def send_image(self) :
|
||||
try :
|
||||
|
Reference in New Issue
Block a user