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

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

Issue 18323018: Linking AvailabilityFinder with APIDataSource and intro-table templates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase with master Created 7 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/server_instance.py
diff --git a/chrome/common/extensions/docs/server2/server_instance.py b/chrome/common/extensions/docs/server2/server_instance.py
index adfe91b3db098d6887e08ad99e37362dabf4a1c6..251cee51ccba83db9c49f683ffe6ab2cf176bc8f 100644
--- a/chrome/common/extensions/docs/server2/server_instance.py
+++ b/chrome/common/extensions/docs/server2/server_instance.py
@@ -70,7 +70,8 @@ class ServerInstance(object):
self.api_data_source_factory = APIDataSource.Factory(
self.compiled_host_fs_factory,
- svn_constants.API_PATH)
+ svn_constants.API_PATH,
+ self.availability_finder_factory)
self.ref_resolver_factory = ReferenceResolver.Factory(
self.api_data_source_factory,
@@ -122,6 +123,9 @@ class ServerInstance(object):
svn_constants.PRIVATE_TEMPLATE_PATH,
base_path)
+ self.api_data_source_factory.SetTemplateDataSource(
+ self.template_data_source_factory)
+
self.example_zipper = ExampleZipper(
self.compiled_host_fs_factory,
svn_constants.DOCS_PATH)
@@ -161,8 +165,7 @@ class ServerInstance(object):
store_type=TestObjectStore)
host_file_system_creator = HostFileSystemCreator.ForLocal(
object_store_creator)
- trunk_file_system = host_file_system_creator.Create(
- 'trunk')
+ trunk_file_system = host_file_system_creator.Create('trunk')
return ServerInstance(
channel,
object_store_creator,

Powered by Google App Engine
This is Rietveld 408576698