def get(self): exclusive = Exclusive.query().fetch() if len(exclusive): exclusive = exclusive[0] else: exclusive = {'text': ''} self.response.write(render('exclusive', {'exclusive': exclusive}))
def get(self): self.response.write(render('works', { 'works': Work.get_root()['children'] }))