예제 #1
0
 def get(self):
     logging.info(self.request)
     self.response.headers['Content-Type'] = 'application/json'
     games = GameService.allGames()
     self.response.out.write(GameService.toJSON(games))
     logging.info(self.response)
예제 #2
0
 def get(self):
     logging.info(self.request)
     self.response.headers['Content-Type'] = 'application/json'
     games = GameService.allGames()
     self.response.out.write(GameService.toJSON(games))
     logging.info(self.response)
예제 #3
0
 def get(self):
     games = GameService.allGames()
     template_values = {'games': games}
     path = os.path.join(os.path.dirname(__file__), 'web/listGames.html')
     self.response.out.write(template.render(path, template_values))
예제 #4
0
 def get(self):
     games = GameService.allGames()
     template_values = {'games': games}
     path = os.path.join(os.path.dirname(__file__), 'web/listGames.html')
     self.response.out.write(template.render(path, template_values))