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

Side by Side Diff: chrome/common/extensions/docs/server2/owners_data_source.py

Issue 1151283007: Docserver overhaul: Gitiles away from me. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove inform_users template to fix presubmit failure (it's now a redirect) Created 5 years, 6 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 Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from operator import itemgetter 5 from operator import itemgetter
6 import random 6 import random
7 7
8 from data_source import DataSource 8 from data_source import DataSource
9 from docs_server_utils import MarkLast 9 from docs_server_utils import MarkLast
10 from extensions_paths import BROWSER_API_PATHS, BROWSER_CHROME_EXTENSIONS 10 from extensions_paths import BROWSER_API_PATHS, BROWSER_CHROME_EXTENSIONS
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 self._cache.Set('api_owners', api_owners) 95 self._cache.Set('api_owners', api_owners)
96 return api_owners 96 return api_owners
97 return All(api_owners).Then(sort_and_cache) 97 return All(api_owners).Then(sort_and_cache)
98 return self._cache.Get('api_owners').Then(collect) 98 return self._cache.Get('api_owners').Then(collect)
99 99
100 def get(self, key): 100 def get(self, key):
101 return { 101 return {
102 'apis': self._CollectOwnersData() 102 'apis': self._CollectOwnersData()
103 }.get(key).Get() 103 }.get(key).Get()
104 104
105 def Refresh(self, path): 105 def Refresh(self):
106 return self._CollectOwnersData() 106 return self._CollectOwnersData()
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/object_store_creator.py ('k') | chrome/common/extensions/docs/server2/patch_servlet.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698