def get(self): rendered = renderer.render('admin/submissionapproval.html', { 'game': game, 'answers': game.handGradedAnswers, 'checkedAnswers': game.answersGraded }) self.response.write(rendered)
def update_post_cache(created, instance, **kwargs): html = render(instance.content_plain, "bbcode") cache.set("post/{}/html".format(instance.pk), html, None) if created: cache.set("thread/{}/contributors".format(instance.thread.pk), instance.thread.contributors.all(), None) cache.set('thread/{}/latest_post'.format(instance.thread.pk), instance, None)
def get(self, message=''): puzzle = game.minigames[self.request.get('puzzleId')] number = self.request.get('number') rendered = renderer.render('client/challenge.html', { 'challenge': puzzle, 'number': number, 'message': message }) self.response.write(rendered)
def html(self): html = render(self.content_plain, self.markup) return html
def html(self): html = cache.get('post/{}/html'.format(self.pk)) if not html: html = render(self.content_plain, 'bbcode') cache.set('post/{}/html'.format(self.pk), html, None) return html
def get(self): sorted_users = game.sortUsersByScore() rendered = renderer.render('client/playerleaderboard.html', { 'users': sorted_users }) self.response.write(rendered)
def html(self): html = cache.get('message/{}/html'.format(self.pk)) if not html: html = render(self.content_plain, "bbcode") cache.set('message/{}/html'.format(self.pk), html, None) return html
def get(self): puzzle = game.minigames.get(urllib.unquote(self.request.get('puzzle'))) rendered = renderer.render('admin/puzzle/edit.html', { 'puzzle': puzzle }) self.response.write(rendered)
def get(self): rendered = renderer.render('admin/game/edit.html', { 'game': game }) self.response.write(rendered)
def get(self): rendered = renderer.render('index.html', { 'message': 'heyo' }) self.response.write(rendered)
def get(self): rendered = renderer.render('client/playergamehome.html', { 'game': game, 'number': self.request.get('number') }) self.response.write(rendered)
def get(self): rendered = renderer.render('admin/notification/broadcast.html', { 'messages': messages }) return self.response.write(rendered)
def html(self): return render(self.content, 'markdown')
def get(self): rendered = renderer.render('client/registerteam.html', {}) self.response.write(rendered)
def get(self): rendered = renderer.render('client/gethelp.html', {}) self.response.write(rendered)