コード例 #1
0
ファイル: handlers.py プロジェクト: cacarrara/openkudos
 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
ファイル: handlers.py プロジェクト: cacarrara/openkudos
 def get(self):
     return self.response.write(json.dumps([kudo.to_dict() for kudo in Kudos.all()], cls=DateJsonEncoder))