modifié: superTornado.py

This commit is contained in:
sidya82 2014-03-03 01:24:22 +01:00
parent 7d459f094a
commit 4474a30ed6

View File

@ -92,7 +92,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
iden = self.current_user iden = self.current_user
if self.get_autorisation == "yes": if self.get_autorisation == "yes":
ficLog.printL(iden +" Authorized user connection " + self.request.remote_ip) ficLog.printL(iden +" Authorized user connection " + self.request.remote_ip)
if confAveug == True: if blind == True:
print '->Send audio alarm authorized user' print '->Send audio alarm authorized user'
print 'maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20autorisee")' print 'maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20autorisee")'
else: else:
@ -101,7 +101,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
print "->Authorized user access : " + self.request.remote_ip print "->Authorized user access : " + self.request.remote_ip
else : else :
ficLog.printL(iden + " as IllegalUser Unauthorized user connection" + self.request.remote_ip) 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 '->Send audio alarm unauthorized user'
print 'maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20non%20autorisee")' print 'maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20non%20autorisee")'
else: else:
@ -122,7 +122,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
else : else :
ficLog.printL(iden + " as IllegalUser Unauthorized user deconnection" + self.request.remote_ip) 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 '->Send audio alarm deconnection user'
print 'maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20rompue")' print 'maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20rompue")'
else: else: