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

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

Issue 11315018: Extensions Docs Server: Generalize $ref's to work for any schema node (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 8 years, 1 month 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 4a30257697b66eb8a7f359db33030c046d7a710a..70992510bd5d3e5ea36da609166107035978fe23 100644
--- a/chrome/common/extensions/docs/server2/intro_data_source.py
+++ b/chrome/common/extensions/docs/server2/intro_data_source.py
@@ -13,7 +13,7 @@ from third_party.handlebar import Handlebar
# Increment this version if there are changes to the table of contents dict that
# IntroDataSource caches.
-_VERSION = 1
+_VERSION = 2
_H1_REGEX = re.compile('<h1[^>.]*?>.*?</h1>', flags=re.DOTALL)
@@ -98,9 +98,6 @@ class IntroDataSource(object):
self._cache = cache
self._base_paths = base_paths
- def __getitem__(self, key):
- return self.get(key)
-
def get(self, key):
real_path = FormatKey(key)
error = None
« no previous file with comments | « chrome/common/extensions/docs/server2/handler.py ('k') | chrome/common/extensions/docs/server2/known_issues_data_source.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698