def get(self): """ If an id comes with request a specific kudos is returned, otherwhise all kudos should return. """ ctx = {'kudos': Kudos.all()} return self.render('_base.html', ctx)
def get(self): return self.response.write(json.dumps([kudo.to_dict() for kudo in Kudos.all()], cls=DateJsonEncoder))