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

Side by Side Diff: appengine/components/components/auth/model.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 """NDB model classes used to model AuthDB relations. 5 """NDB model classes used to model AuthDB relations.
6 6
7 Overview 7 Overview
8 -------- 8 --------
9 9
10 Models defined here are used by central authentication service (that stores all 10 Models defined here are used by central authentication service (that stores all
11 groups and secrets) and by services that implement some concrete functionality 11 groups and secrets) and by services that implement some concrete functionality
12 protected with ACLs (like isolate and swarming services). 12 protected with ACLs (like isolate and swarming services).
13 13
(...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 assignments = ( 1212 assignments = (
1213 ip_whitelist_assignments_key().get() or 1213 ip_whitelist_assignments_key().get() or
1214 AuthIPWhitelistAssignments(key=ip_whitelist_assignments_key())) 1214 AuthIPWhitelistAssignments(key=ip_whitelist_assignments_key()))
1215 1215
1216 names = set(a.ip_whitelist for a in assignments.assignments) 1216 names = set(a.ip_whitelist for a in assignments.assignments)
1217 names.add(BOTS_IP_WHITELIST) 1217 names.add(BOTS_IP_WHITELIST)
1218 1218
1219 whitelists = ndb.get_multi(ip_whitelist_key(n) for n in names) 1219 whitelists = ndb.get_multi(ip_whitelist_key(n) for n in names)
1220 whitelists = sorted(filter(None, whitelists), key=lambda x: x.key.id()) 1220 whitelists = sorted(filter(None, whitelists), key=lambda x: x.key.id())
1221 return assignments, whitelists 1221 return assignments, whitelists
OLDNEW
« no previous file with comments | « appengine/components/components/auth/main.py ('k') | appengine/components/components/auth/model_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698