OLD | NEW |
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 Loading... |
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() |
OLD | NEW |