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

Unified Diff: chrome/common/extensions/docs/server2/jsc_view.py

Issue 575613003: Docserver: Gitiles auth and cron refactoring. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: chrome/common/extensions/docs/server2/jsc_view.py
diff --git a/chrome/common/extensions/docs/server2/jsc_view.py b/chrome/common/extensions/docs/server2/jsc_view.py
index 48aa9cc1f3bcef1ab64ef37302dcd348328ef892..38e56e94df17762fe8b2e75aee509d91628fd393 100644
--- a/chrome/common/extensions/docs/server2/jsc_view.py
+++ b/chrome/common/extensions/docs/server2/jsc_view.py
@@ -116,6 +116,7 @@ class JSCView(object):
as_dict['deprecated'] = self._jsc_model.deprecated
as_dict['byName'] = _GetByNameDict(as_dict)
+
return as_dict
def _IsExperimental(self):
@@ -388,6 +389,9 @@ class JSCView(object):
'''Returns an object suitable for use in templates to display availability
information.
'''
+ # TODO(rockot): Temporary hack. Remove this very soon.
+ if status == 'master':
+ status = 'trunk'
return {
'partial': self._template_cache.GetFromFile(
'%sintro_tables/%s_message.html' % (PRIVATE_TEMPLATES, status)).Get(),

Powered by Google App Engine
This is Rietveld 408576698