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

Side by Side Diff: appengine/auth_service/importer.py

Issue 1860863002: Update copyright notice from Swarming to LUCI; add AUTHORS and CONTRIBUTORS. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: . Created 4 years, 8 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 Swarming 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 by the Apache v2.0 license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Imports groups from some external tar.gz bundle or plain text list. 5 """Imports groups from some external tar.gz bundle or plain text list.
6 6
7 External URL should serve *.tar.gz file with the following file structure: 7 External URL should serve *.tar.gz file with the following file structure:
8 <external group system name>/<group name>: 8 <external group system name>/<group name>:
9 userid 9 userid
10 userid 10 userid
11 ... 11 ...
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 499
500 # Create new groups. 500 # Create new groups.
501 for group_name in (set(imported_groups) - set(system_groups)): 501 for group_name in (set(imported_groups) - set(system_groups)):
502 create_group(group_name) 502 create_group(group_name)
503 503
504 # Update existing groups. 504 # Update existing groups.
505 for group_name in (set(imported_groups) & set(system_groups)): 505 for group_name in (set(imported_groups) & set(system_groups)):
506 update_group(group_name) 506 update_group(group_name)
507 507
508 return to_put, to_delete 508 return to_put, to_delete
OLDNEW
« no previous file with comments | « appengine/auth_service/handlers_frontend_test.py ('k') | appengine/auth_service/importer_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698