| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import collections | 5 import collections |
| 6 import json | 6 import json |
| 7 import logging | 7 import logging |
| 8 import os | |
| 9 | 8 |
| 10 from google.appengine.api import users | 9 from google.appengine.api import users |
| 11 import jinja2 | 10 import jinja2 |
| 12 import webapp2 | 11 import webapp2 |
| 13 | 12 |
| 14 from common import constants | 13 from common import constants |
| 15 | 14 |
| 16 | 15 |
| 17 JINJA_ENVIRONMENT = jinja2.Environment( | 16 JINJA_ENVIRONMENT = jinja2.Environment( |
| 18 loader=jinja2.FileSystemLoader(constants.HTML_TEMPLATE_DIR), | 17 loader=jinja2.FileSystemLoader(constants.HTML_TEMPLATE_DIR), |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 return_code = 500 | 177 return_code = 500 |
| 179 cache_expiry = None | 178 cache_expiry = None |
| 180 | 179 |
| 181 self._SendResponse(template, data, return_code, cache_expiry) | 180 self._SendResponse(template, data, return_code, cache_expiry) |
| 182 | 181 |
| 183 def get(self): | 182 def get(self): |
| 184 self._Handle(self.HandleGet) | 183 self._Handle(self.HandleGet) |
| 185 | 184 |
| 186 def post(self): | 185 def post(self): |
| 187 self._Handle(self.HandlePost) | 186 self._Handle(self.HandlePost) |
| OLD | NEW |