示例#1
0
 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)
示例#2
0
 def get(self):
     return self.response.write(json.dumps([kudo.to_dict() for kudo in Kudos.all()], cls=DateJsonEncoder))