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

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

Issue 10809062: Extensions Docs Server: Samples search and icons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 5 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
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/samples_data_source.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/api_list_data_source.py
diff --git a/chrome/common/extensions/docs/server2/api_list_data_source.py b/chrome/common/extensions/docs/server2/api_list_data_source.py
index 289d34309a5a8a106598b5ec9c5579cf0704c6cf..5861b7e1939e440297b3178d23d5a80bd0ce9ddd 100644
--- a/chrome/common/extensions/docs/server2/api_list_data_source.py
+++ b/chrome/common/extensions/docs/server2/api_list_data_source.py
@@ -25,9 +25,11 @@ class APIListDataSource(object):
for i, template_name in enumerate(template_names):
if model.UnixName(template_name) in api_names:
if template_name.startswith('experimental'):
- experimental_apis.append(template_name.replace('_', '.'))
+ experimental_apis.append({ 'name': template_name.replace('_', '.') })
else:
- chrome_apis.append(template_name.replace('_', '.'))
+ chrome_apis.append({ 'name': template_name.replace('_', '.') })
+ chrome_apis[-1].update({ 'last': True })
+ experimental_apis[-1].update({ 'last': True })
not at google - send to devlin 2012/07/25 00:18:08 just curious, is there some reason you did this ra
cduvall 2012/07/25 00:24:56 I have no idea why I decided to use update :) Chan
return {
'chrome': sorted(chrome_apis),
'experimental': sorted(experimental_apis)
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/samples_data_source.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698