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

Unified Diff: chrome/common/extensions/docs/server2/samples_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/samples_data_source.py
diff --git a/chrome/common/extensions/docs/server2/samples_data_source.py b/chrome/common/extensions/docs/server2/samples_data_source.py
index 69167eb041b08311dfb4e9af6b55ab88926368ec..4aa25f57da6bab4dc193a8d79ba5cc0502763240 100644
--- a/chrome/common/extensions/docs/server2/samples_data_source.py
+++ b/chrome/common/extensions/docs/server2/samples_data_source.py
@@ -121,6 +121,9 @@ class SamplesDataSource(object):
def __getitem__(self, key):
return self.get(key)
+ def values(self):
+ return self.get('')
not at google - send to devlin 2012/08/01 10:09:19 call GetAll plz. Incidentally we should rename al
chebert 2012/08/01 18:04:33 The reason they are called get() and values() is t
not at google - send to devlin 2012/08/01 20:56:32 Ah cool. No problem.
+
def get(self, key):
samples_list = self._cache.GetFromFileListing(self._samples_path + '/')
return_list = []

Powered by Google App Engine
This is Rietveld 408576698