From 93234052d6bd90a902cf19e2d42cd5f1984492e8 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Tue, 18 Mar 2014 21:39:24 +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 f54d0b4..ff04702 100644 --- a/superTornado.py +++ b/superTornado.py @@ -168,7 +168,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler): self.send_signal_house('maison.request("GET", "micom/lamp.php?room=salon1&order=1")') else : GlobalVars.log.printL("->"+iden + ": Unauthorized user connection : " + self.request.remote_ip,lvl.WARNING) - if blind == True: + if GlobalVars.blind == True: GlobalVars.unauthorized + 1 GlobalVars.log.printL('->Send audio alarm unauthorized user',lvl.WARNING) self.send_signal_house('maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20non%20autorisee")') @@ -200,7 +200,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler): unauthorized - 1 GlobalVars.log.printL("->"+iden +" : Unauthorized User Deconnection : "+self.request.remote_ip,lvl.WARNING) - if blind == True: + if GlobalVars.blind == True: if (GlobalVars.unauthorized == 0) and (authorized == 0): GlobalVars.log.printL('->Send Audio Alarm Deconnection User', lvl.INFO) self.send_signal_house('maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20rompue")') @@ -279,7 +279,7 @@ if __name__ == "__main__": GlobalVars.log.printL("Configuration Loading Failed ! Check Configuration File !",lvl.FAIL) sys.exit(1) GlobalVars.log.printL("->Configuration Server Load Successfully !",lvl.SUCCESS) - if blind == True: + if GlobalVars.blind == True: GlobalVars.log.printL(" +Blind unhabitant",lvl.INFO) else : GlobalVars.log.printL(" +Not blind unhabitant",lvl.INFO)