def get(self, channel_id, video_id): data_source.view_video(channel_id, video_id) video = data_source.get_video(channel_id, video_id) if video: self.render_dict_as_json(video) else: self.response.out.write("{}")
def get(self, channel_id, video_id, comment_id=''): data_source.view_video(channel_id, video_id) video = data_source.get_video(channel_id, video_id) values = {}; values["video"] = video; self.render("ChannelListPage.html", values)