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

Side by Side Diff: appengine/components/components/config/common.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 2015 The LUCI Authors. All rights reserved. 1 # Copyright 2015 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 import logging 5 import logging
6 import re 6 import re
7 7
8 from google.appengine.api import app_identity 8 from google.appengine.api import app_identity
9 from google.appengine.api import lib_config 9 from google.appengine.api import lib_config
10 from google.appengine.ext import ndb 10 from google.appengine.ext import ndb
11 from protorpc import messages 11 from protorpc import messages
12 12
13 # Config component is using google.protobuf package, it requires some python 13 # Config component is using google.protobuf package, it requires some python
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 @utils.cache 109 @utils.cache
110 def self_config_set(): 110 def self_config_set():
111 return 'services/%s' % app_identity.get_application_id() 111 return 'services/%s' % app_identity.get_application_id()
112 112
113 113
114 def config_service_hostname(): 114 def config_service_hostname():
115 """Returns hostname of the config service, or None.""" 115 """Returns hostname of the config service, or None."""
116 settings = ConfigSettings.cached() 116 settings = ConfigSettings.cached()
117 return settings and settings.service_hostname or None 117 return settings and settings.service_hostname or None
OLDNEW
« no previous file with comments | « appengine/components/components/config/apps.py ('k') | appengine/components/components/config/common_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698