modifié: superTornado.py
modifié: video.html
This commit is contained in:
parent
7b0ec84138
commit
e00ad09f38
@ -48,9 +48,7 @@ class VideoHandler(BaseHandler):
|
|||||||
self.redirect("/")
|
self.redirect("/")
|
||||||
return
|
return
|
||||||
name = tornado.escape.xhtml_escape(self.current_user)
|
name = tornado.escape.xhtml_escape(self.current_user)
|
||||||
with open("image/temp.jpg", 'rb') as f:
|
self.render("video.html")
|
||||||
data = f.read()
|
|
||||||
self.write(data)
|
|
||||||
|
|
||||||
class UnauthorizedHandler(BaseHandler):
|
class UnauthorizedHandler(BaseHandler):
|
||||||
def get(self):
|
def get(self):
|
||||||
|
@ -7,5 +7,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h2>Vue camera</h2>
|
<h2>Vue camera</h2>
|
||||||
|
<img href="image/temp.jpg"
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user