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

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

Issue 10835012: Extension Docs Server: Include a list of samples used in the api reference page. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
Index: chrome/common/extensions/docs/server2/template_data_source.py
diff --git a/chrome/common/extensions/docs/server2/template_data_source.py b/chrome/common/extensions/docs/server2/template_data_source.py
index e2f03d9547078c354ac72feb94bc4c34a1261038..f8ec83ba245de1f616d0c8c86484e8604ed5c40f 100644
--- a/chrome/common/extensions/docs/server2/template_data_source.py
+++ b/chrome/common/extensions/docs/server2/template_data_source.py
@@ -88,6 +88,8 @@ class TemplateDataSource(object):
self._api_list_data_source = api_list_data_source
self._intro_data_source = intro_data_source
self._samples_data_source = samples_data_source_factory.Create(request)
+ samples_key = ''
+ self._api_data_source.samples = self._samples_data_source.get(samples_key)
chebert 2012/07/26 20:36:39 I can combine these? Not sure.
cduvall 2012/07/26 22:04:24 I think it might be better to turn api_data_source
chebert 2012/07/26 22:30:52 Done.
self._cache = cache
self._public_template_path = public_template_path
self._private_template_path = private_template_path

Powered by Google App Engine
This is Rietveld 408576698