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

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

Issue 10689144: Extensions Docs Server: Samples zip files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up and tests 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/intro_data_source.py
diff --git a/chrome/common/extensions/docs/server2/intro_data_source.py b/chrome/common/extensions/docs/server2/intro_data_source.py
index 85fab3abc47d090930382fffa5c0bb6589fda302..fadf42112d51a5e29f0aa99944f229af0393024b 100644
--- a/chrome/common/extensions/docs/server2/intro_data_source.py
+++ b/chrome/common/extensions/docs/server2/intro_data_source.py
@@ -7,8 +7,8 @@ from path_utils import FormatKey
from third_party.handlebar import Handlebar
class IntroDataSource(object):
- """This class fetches and loads JSON APIs with the fetcher passed in with
- |cache_builder|, so the APIs can be plugged into templates.
+ """This class fetches the intros for a given API. From this intro, a table
+ of contents dictionary is created, which contains the headings in the intro.
"""
def __init__(self, cache_builder, base_path):
self._cache = cache_builder.build(self._MakeIntroDict)
@@ -31,7 +31,7 @@ class IntroDataSource(object):
def get(self, key):
real_path = FormatKey(key)
try:
- return self._cache.get(self._base_path + '/' + real_path)
+ return self._cache.getFromFile(self._base_path + '/' + real_path)
except:
pass
return None
« no previous file with comments | « chrome/common/extensions/docs/server2/fetcher_cache.py ('k') | chrome/common/extensions/docs/server2/local_fetcher.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698