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

Side by Side Diff: appengine/components/components/auth/ui/rest_api.py

Issue 2013943002: Changing license header, again! (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Fixed third parties Created 4 years, 7 months 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
OLDNEW
1 # Copyright 2014 The LUCI Authors. All rights reserved. 1 # Copyright 2014 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed by the Apache v2.0 license that can be 2 # Use of this source code is governed under the Apache License, Version 2.0
3 # found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 """Auth management REST API.""" 5 """Auth management REST API."""
6 6
7 import base64 7 import base64
8 import functools 8 import functools
9 import logging 9 import logging
10 import textwrap 10 import textwrap
11 import urllib 11 import urllib
12 import webapp2 12 import webapp2
13 13
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 mode = 'replica' 967 mode = 'replica'
968 else: 968 else:
969 assert model.is_standalone() 969 assert model.is_standalone()
970 mode = 'standalone' 970 mode = 'standalone'
971 state = model.get_replication_state() or model.AuthReplicationState() 971 state = model.get_replication_state() or model.AuthReplicationState()
972 self.send_response({ 972 self.send_response({
973 'auth_code_version': version.__version__, 973 'auth_code_version': version.__version__,
974 'mode': mode, 974 'mode': mode,
975 'replication_state': state.to_serializable_dict(), 975 'replication_state': state.to_serializable_dict(),
976 }) 976 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698