modifié: m/fichier/conf

modifié:         m/loadConf.py
	modifié:         superTornado.py
This commit is contained in:
sidya82 2014-03-02 23:35:46 +01:00
parent dd1efef7be
commit f7c902dddb
3 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,3 @@
blind=1
camera=192.168.1.13
port=80

View File

@ -19,7 +19,6 @@ class LoadConf(object):
return rep
def ipCamera(self) :
print self.loadValue("camera")
return self.loadValue("camera")
def portServ(self) :

View File

@ -165,10 +165,10 @@ if __name__ == "__main__":
if port == "error" :
raise "Failed Load Port Server Configuration"
except Exception, e :
print "Configuration Loading Failed ! Check Configuration File !"
print bcolors.WARNING + "Configuration Loading Failed ! Check Configuration File !" + bcolors.ENDC
print e
sys.exit(1)
print "->Configuration Server Load Successfully:"
print "->Configuration Server Load Successfully :"
if blind == True:
print " ->Blind unhabitant"
else :
@ -181,6 +181,7 @@ if __name__ == "__main__":
print("->Server Start ...")
http_server = tornado.httpserver.HTTPServer(application)
http_server.listen(port)
print "->Server Start Successfully !"
tornado.ioloop.IOLoop.instance().start()
except Exception, e :
print "Server Start Failed !"