modifié: m/fichier/conf

modifié:         superTornado.py
This commit is contained in:
sidya82 2014-03-03 13:53:21 +01:00
parent d43abefe34
commit baeec52526
2 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
blind=1
camera=192.168.1.13
portCamera=80
portServ=80

View File

@ -154,7 +154,7 @@ application = tornado.web.Application([
cookie_secret="1213215656")
if __name__ == "__main__":
log.printL ("->Loading configuration ... ", 20 )
log.printL("->Loading configuration ... ",20)
try :
blind = config.isBlind()
ipCamera = config.ipCamera()
@ -169,12 +169,12 @@ if __name__ == "__main__":
if portServ == "error" :
raise ConfigError("Failed Load Port Server Configuration")
except ConfigError as e :
log.printL(e.value, 40)
log.printL("Configuration Loading Failed ! Check Configuration File !", 40)
log.printL(e.value,40)
log.printL("Configuration Loading Failed ! Check Configuration File !",40)
sys.exit(1)
print log.printL("->Configuration Server Load Successfully !", 25)
print log.printL("->Configuration Server Load Successfully !",25)
if blind == True:
log.printL(" ->Blind unhabitant", 25)
log.printL(" ->Blind unhabitant",25)
else :
log.printL(" ->Not blind unhabitant",25)
log.printL(" ->Ip camera : " + ipCamera,25)
@ -183,6 +183,7 @@ if __name__ == "__main__":
try :
log.printL("->Server Start ...",20)
tornado.options.parse_command_line()
http_server = tornado.httpserver.HTTPServer(application)
http_server.listen(portServ)
log.printL("->Server Start Successfully !",25)