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 """This file handles serving the list of committers to users.""" | 5 """This file handles serving the list of committers to users.""" |
6 | 6 |
7 __author__ = 'agable@google.com (Aaron Gable)' | 7 __author__ = 'agable@google.com (Aaron Gable)' |
8 | 8 |
9 | 9 |
10 import base64 | 10 import base64 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 email_json = base64.b64decode(self.request.get('committers')) | 77 email_json = base64.b64decode(self.request.get('committers')) |
78 emails = json.loads(email_json) | 78 emails = json.loads(email_json) |
79 | 79 |
80 # Throws committers.AuthorizationError if not HMAC authenticated, but we | 80 # Throws committers.AuthorizationError if not HMAC authenticated, but we |
81 # require that via the decorator. | 81 # require that via the decorator. |
82 committers.put_list(user, list_name, emails) | 82 committers.put_list(user, list_name, emails) |
83 | 83 |
84 | 84 |
85 app = webapp2.WSGIApplication([ | 85 app = webapp2.WSGIApplication([ |
86 ('/', MainPageHandler), | 86 ('/', MainPageHandler), |
87 ('/lists/([a-zA-Z0-9_-]+)', ListHandler), | 87 ('/lists/([a-zA-Z0-9.@_-]+)', ListHandler), |
88 ('/update/([a-zA-Z0-9_-]+)', UpdateHandler), | 88 ('/update/([a-zA-Z0-9.@_-]+)', UpdateHandler), |
89 ], debug=True) | 89 ], debug=True) |
90 | 90 |
91 ep_server = endpoints.api_server([ep_api.CommittersApi]) | 91 ep_server = endpoints.api_server([ep_api.CommittersApi]) |
OLD | NEW |