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

Unified Diff: appengine/components/components/config/remote.py

Issue 1221643020: config services: services.cfg and validation (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: appengine/components/components/config/remote.py
diff --git a/appengine/components/components/config/remote.py b/appengine/components/components/config/remote.py
index d5c1883f45c74561c97192c8dae3ab9fecfbfa4e..0ec9a99f87e6199343bee713ace6313cd6cb9014 100644
--- a/appengine/components/components/config/remote.py
+++ b/appengine/components/components/config/remote.py
@@ -25,7 +25,6 @@ MEMCACHE_PREFIX = 'components.config/v1/'
CONFIG_MAX_TIME_SINCE_LAST_ACCESS = datetime.timedelta(days=7)
# Update LastGoodConfig.last_access_ts if it will be deleted next day.
UPDATE_LAST_ACCESS_TIME_FREQUENCY = datetime.timedelta(days=1)
-EMAIL_SCOPE = 'https://www.googleapis.com/auth/userinfo.email'
class LastGoodConfig(ndb.Model):
@@ -56,7 +55,7 @@ class Provider(object):
def _api_call_async(self, path, allow_not_found=True, **kwargs):
assert path
url = 'https://%s/_ah/api/config/v1/%s' % (self.service_hostname, path)
- kwargs.setdefault('scopes', EMAIL_SCOPE)
+ kwargs.setdefault('scopes', net.EMAIL_SCOPE)
try:
response = yield net.json_request_async(url, **kwargs)
raise ndb.Return(response)
« no previous file with comments | « appengine/components/components/config/endpoint_test.py ('k') | appengine/components/components/config/remote_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698