Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Side by Side Diff: appengine/chromium_committers/appengine_module/chromium_committers/app.py

Issue 1406013008: Support email-style list names in chromium-committers (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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])
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698