From f7c902dddb6072452cacdd21e2fe0aeb6b9e1670 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Sun, 2 Mar 2014 23:35:46 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20m/fi?= =?UTF-8?q?chier/conf=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20m/loadC?= =?UTF-8?q?onf.py=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20superTornad?= =?UTF-8?q?o.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- m/fichier/conf | 2 +- m/loadConf.py | 1 - superTornado.py | 5 +++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/m/fichier/conf b/m/fichier/conf index 8f36451..4a6d12d 100644 --- a/m/fichier/conf +++ b/m/fichier/conf @@ -1,3 +1,3 @@ -blind=1 + camera=192.168.1.13 port=80 diff --git a/m/loadConf.py b/m/loadConf.py index 55100ed..f8827fe 100644 --- a/m/loadConf.py +++ b/m/loadConf.py @@ -19,7 +19,6 @@ class LoadConf(object): return rep def ipCamera(self) : - print self.loadValue("camera") return self.loadValue("camera") def portServ(self) : diff --git a/superTornado.py b/superTornado.py index 2226c8c..47b585b 100644 --- a/superTornado.py +++ b/superTornado.py @@ -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 !"