renommé: fichier/autorise -> m/fichier/autorise
renommé: fichier/conf -> m/fichier/conf renommé: fichier/log -> m/fichier/log renommé: loadConf.py -> m/loadConf.py renommé: login.py -> m/login.py modifié: superTornado.py renommé: illegal.html -> v/illegal.html renommé: images/iut.jpg -> v/images/iut.jpg renommé: index.html -> v/index.html renommé: js/jquery-2.1.0.min.js -> v/js/jquery-2.1.0.min.js renommé: style/styles.css -> v/style/styles.css renommé: video.html -> v/video.html
This commit is contained in:
parent
49a2f977ff
commit
fde39f3ce9
@ -10,9 +10,7 @@ from urllib import urlopen
|
|||||||
from tornado.ioloop import PeriodicCallback
|
from tornado.ioloop import PeriodicCallback
|
||||||
|
|
||||||
|
|
||||||
from session import *
|
from m import *
|
||||||
from loadConf import *
|
|
||||||
from login import *
|
|
||||||
import os
|
import os
|
||||||
dirname = os.path.dirname(__file__)
|
dirname = os.path.dirname(__file__)
|
||||||
|
|
||||||
@ -25,7 +23,7 @@ class BaseHandler(tornado.web.RequestHandler):
|
|||||||
|
|
||||||
class MainHandler(BaseHandler):
|
class MainHandler(BaseHandler):
|
||||||
def get(self):
|
def get(self):
|
||||||
self.render("index.html")
|
self.render("v/index.html")
|
||||||
def post(self):
|
def post(self):
|
||||||
iden = self.get_argument("id","")
|
iden = self.get_argument("id","")
|
||||||
mdp = self.get_argument("mdp","")
|
mdp = self.get_argument("mdp","")
|
||||||
@ -49,7 +47,7 @@ class VideoHandler(BaseHandler):
|
|||||||
|
|
||||||
class UnauthorizedHandler(BaseHandler):
|
class UnauthorizedHandler(BaseHandler):
|
||||||
def get(self):
|
def get(self):
|
||||||
self.render("illegal.html")
|
self.render("v/illegal.html")
|
||||||
def post(self):
|
def post(self):
|
||||||
force = self.get_argument("illegalAccess","")
|
force = self.get_argument("illegalAccess","")
|
||||||
if force == "1" :
|
if force == "1" :
|
||||||
@ -134,10 +132,6 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
|
|||||||
print 'maison.request("GET", "micom/lamp.php?room=salon1&order=0")'
|
print 'maison.request("GET", "micom/lamp.php?room=salon1&order=0")'
|
||||||
print"->"+iden+" Deconnection"
|
print"->"+iden+" Deconnection"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
application = tornado.web.Application([
|
application = tornado.web.Application([
|
||||||
(r"/", MainHandler),
|
(r"/", MainHandler),
|
||||||
(r"/video", VideoHandler),
|
(r"/video", VideoHandler),
|
||||||
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Reference in New Issue
Block a user