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

Side by Side Diff: chrome/common/extensions/docs/server2/whats_new_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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 itertools import groupby 5 from itertools import groupby
6 from operator import itemgetter 6 from operator import itemgetter
7 import posixpath 7 import posixpath
8 8
9 from data_source import DataSource 9 from data_source import DataSource
10 from extensions_paths import JSON_TEMPLATES, PUBLIC_TEMPLATES 10 from extensions_paths import JSON_TEMPLATES, PUBLIC_TEMPLATES
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 def _GetCachedWhatsNewData(self): 89 def _GetCachedWhatsNewData(self):
90 data = self._object_store.Get('whats_new_data').Get() 90 data = self._object_store.Get('whats_new_data').Get()
91 if data is None: 91 if data is None:
92 data = self._GenerateWhatsNewDict().Get() 92 data = self._GenerateWhatsNewDict().Get()
93 self._object_store.Set('whats_new_data', data) 93 self._object_store.Set('whats_new_data', data)
94 return data 94 return data
95 95
96 def get(self, key): 96 def get(self, key):
97 return self._GetCachedWhatsNewData().get(key) 97 return self._GetCachedWhatsNewData().get(key)
98 98
99 def Refresh(self, path): 99 def Refresh(self):
100 return self._GenerateWhatsNewDict() 100 return self._GenerateWhatsNewDict()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698