From e00ad09f38de824bdb9092286d36f966bdba8971 Mon Sep 17 00:00:00 2001 From: sidya82 Date: Fri, 28 Feb 2014 01:33:56 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20supe?= =?UTF-8?q?rTornado.py=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20video.?= =?UTF-8?q?html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- superTornado.py | 4 +--- video.html | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/superTornado.py b/superTornado.py index ec3d725..d144df4 100644 --- a/superTornado.py +++ b/superTornado.py @@ -48,9 +48,7 @@ class VideoHandler(BaseHandler): self.redirect("/") return name = tornado.escape.xhtml_escape(self.current_user) - with open("image/temp.jpg", 'rb') as f: - data = f.read() - self.write(data) + self.render("video.html") class UnauthorizedHandler(BaseHandler): def get(self): diff --git a/video.html b/video.html index e6db22c..c61d331 100644 --- a/video.html +++ b/video.html @@ -7,5 +7,6 @@

Vue camera

+