nouveau fichier: image/temp.jpg

modifié:         superTornado.py
	modifié:         video.html
This commit is contained in:
sidya82 2014-02-28 01:27:12 +01:00
parent f5bfa5e53b
commit d233f42973
3 changed files with 9 additions and 1 deletions

BIN
image/temp.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -69,10 +69,19 @@ class UnauthorizedHandler(BaseHandler):
self.redirect("/")
class AJAXHandler(BaseHandler):
def get(self):
with open(path, 'rb') as f:
data = f.read()
self.write(data)
application = tornado.web.Application([
(r"/", MainHandler),
(r"/video", VideoHandler),
(r"/unauthorized", UnauthorizedHandler),
(r"/ajax", AJAXHandler),
], cookie_secret="1213215656")
if __name__ == "__main__":

View File

@ -7,6 +7,5 @@
</head>
<body>
<h2>Vue camera</h2>
</body>
</html>