From 4474a30ed68fb6090416ced0ebaade80efc15964 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Mon, 3 Mar 2014 01:24:22 +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 5e34932..8aa7aba 100644 --- a/superTornado.py +++ b/superTornado.py @@ -92,7 +92,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler): iden = self.current_user if self.get_autorisation == "yes": ficLog.printL(iden +" Authorized user connection " + self.request.remote_ip) - if confAveug == True: + if blind == True: print '->Send audio alarm authorized user' print 'maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20autorisee")' else: @@ -101,7 +101,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler): print "->Authorized user access : " + self.request.remote_ip else : ficLog.printL(iden + " as IllegalUser Unauthorized user connection" + self.request.remote_ip) - if confAveug == True: + if blind == True: print '->Send audio alarm unauthorized user' print 'maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20non%20autorisee")' else: @@ -122,7 +122,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler): else : ficLog.printL(iden + " as IllegalUser Unauthorized user deconnection" + self.request.remote_ip) - if confAveug == True: + if blind == True: print '->Send audio alarm deconnection user' print 'maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20rompue")' else: