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

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

Issue 10750017: Extensions Docs Server: Intro data source (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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/echo_handler.py
diff --git a/chrome/common/extensions/docs/server2/echo_handler.py b/chrome/common/extensions/docs/server2/echo_handler.py
index bc6f3cfe618f1f59f70b909950a13b275603d028..cd99c4c76982b7d7d56cd02b8f4a5e12fc8cb120 100755
--- a/chrome/common/extensions/docs/server2/echo_handler.py
+++ b/chrome/common/extensions/docs/server2/echo_handler.py
@@ -20,6 +20,7 @@ from google.appengine.ext.webapp.util import run_wsgi_app
from api_data_source import APIDataSource
from fetcher_cache import FetcherCache
+from intro_data_source import IntroDataSource
from local_fetcher import LocalFetcher
from server_instance import ServerInstance
from subversion_fetcher import SubversionFetcher
@@ -28,6 +29,7 @@ from template_data_source import TemplateDataSource
EXTENSIONS_PATH = 'chrome/common/extensions'
DOCS_PATH = 'docs'
API_PATH = 'api'
+INTRO_PATH = DOCS_PATH + '/server2/templates/intros'
PUBLIC_TEMPLATE_PATH = DOCS_PATH + '/server2/templates/public'
PRIVATE_TEMPLATE_PATH = DOCS_PATH + '/server2/templates/private'
@@ -52,9 +54,11 @@ class Server(webapp.RequestHandler):
cache_timeout_seconds = 300
cache_builder = FetcherCache.Builder(fetcher, cache_timeout_seconds)
api_data_source = APIDataSource(cache_builder, API_PATH)
+ intro_data_source = IntroDataSource(cache_builder, INTRO_PATH)
template_data_source = TemplateDataSource(
branch,
api_data_source,
+ intro_data_source,
cache_builder,
[PUBLIC_TEMPLATE_PATH, PRIVATE_TEMPLATE_PATH])
SERVER_INSTANCES[branch] = ServerInstance(

Powered by Google App Engine
This is Rietveld 408576698