modifié: superTornado.py
This commit is contained in:
parent
6a8816f0d8
commit
5212acc027
@ -6,7 +6,7 @@ import tornado.options
|
|||||||
import time
|
import time
|
||||||
import base64
|
import base64
|
||||||
from urllib import urlopen
|
from urllib import urlopen
|
||||||
import Settings
|
|
||||||
|
|
||||||
|
|
||||||
from tornado.ioloop import PeriodicCallback
|
from tornado.ioloop import PeriodicCallback
|
||||||
@ -14,6 +14,8 @@ from tornado.ioloop import PeriodicCallback
|
|||||||
from session import *
|
from session import *
|
||||||
from loadConf import *
|
from loadConf import *
|
||||||
from login import *
|
from login import *
|
||||||
|
import os
|
||||||
|
dirname = os.path.dirname(__file__)
|
||||||
|
|
||||||
confAveug = False
|
confAveug = False
|
||||||
ficLog = Login()
|
ficLog = Login()
|
||||||
@ -129,11 +131,9 @@ application = tornado.web.Application([
|
|||||||
(r"/unauthorized", UnauthorizedHandler),
|
(r"/unauthorized", UnauthorizedHandler),
|
||||||
(r"/disconnection", DisconnectionHandler),
|
(r"/disconnection", DisconnectionHandler),
|
||||||
(r"/socket", WSocketHandler),],
|
(r"/socket", WSocketHandler),],
|
||||||
settings = {
|
STATIC_PATH = os.path.join(dirname, 'static'),
|
||||||
"template_path": Settings.TEMPLATE_PATH,
|
TEMPLATE_PATH = os.path.join(dirname, 'templates'),
|
||||||
"static_path": Settings.STATIC_PATH,
|
cookie_secret="1213215656")
|
||||||
},
|
|
||||||
cookie_secret="1213215656")
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
hand = LoadConf()
|
hand = LoadConf()
|
||||||
|
Reference in New Issue
Block a user