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

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

Issue 255473003: docserver: Adds "API scheduled for Chrome version..." text to dev and beta APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style changes, moves template text to another template file Created 6 years, 8 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/api_data_source.py
diff --git a/chrome/common/extensions/docs/server2/api_data_source.py b/chrome/common/extensions/docs/server2/api_data_source.py
index 57270509db1e0e6572c77dd3b9322455848b8a16..982fefb65d6a79a55a96430d17a6b0d91742faf2 100644
--- a/chrome/common/extensions/docs/server2/api_data_source.py
+++ b/chrome/common/extensions/docs/server2/api_data_source.py
@@ -119,7 +119,7 @@ class _JSCModel(object):
def _GetChannelWarning(self):
if not self._IsExperimental():
- return { self._GetApiAvailability().channel: True }
+ return { self._GetApiAvailability().channel_info.channel: True }
return None
def _IsExperimental(self):
@@ -351,10 +351,12 @@ class _JSCModel(object):
if self._IsExperimental():
status = 'experimental'
version = None
+ scheduled = None
else:
availability = self._GetApiAvailability()
- status = availability.channel
- version = availability.version
+ status = availability.channel_info.channel
+ version = availability.channel_info.version
+ scheduled = availability.scheduled
return {
'title': 'Availability',
'content': [{
@@ -362,7 +364,8 @@ class _JSCModel(object):
posixpath.join(PRIVATE_TEMPLATES,
'intro_tables',
'%s_message.html' % status)).Get(),
- 'version': version
+ 'version': version,
+ 'scheduled': scheduled
}]
}

Powered by Google App Engine
This is Rietveld 408576698