OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from api_data_source import APIDataSource | 5 from api_data_source import APIDataSource |
6 from api_list_data_source import APIListDataSource | 6 from api_list_data_source import APIListDataSource |
7 from appengine_wrappers import IsDevServer | 7 from appengine_wrappers import IsDevServer |
8 from availability_finder import AvailabilityFinder | 8 from availability_finder import AvailabilityFinder |
9 from compiled_file_system import CompiledFileSystem | 9 from compiled_file_system import CompiledFileSystem |
10 from empty_dir_file_system import EmptyDirFileSystem | 10 from empty_dir_file_system import EmptyDirFileSystem |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
93 self.sidenav_data_source_factory = SidenavDataSource.Factory( | 93 self.sidenav_data_source_factory = SidenavDataSource.Factory( |
94 self.compiled_host_fs_factory, | 94 self.compiled_host_fs_factory, |
95 svn_constants.JSON_PATH) | 95 svn_constants.JSON_PATH) |
96 | 96 |
97 self.manifest_data_source = ManifestDataSource( | 97 self.manifest_data_source = ManifestDataSource( |
98 self.compiled_host_fs_factory, | 98 self.compiled_host_fs_factory, |
99 host_file_system, | 99 host_file_system, |
100 '/'.join((svn_constants.JSON_PATH, 'manifest.json')), | 100 '/'.join((svn_constants.JSON_PATH, 'manifest.json')), |
101 '/'.join((svn_constants.API_PATH, '_manifest_features.json'))) | 101 '/'.join((svn_constants.API_PATH, '_manifest_features.json'))) |
102 | 102 |
103 self.manifest_data_source = ManifestDataSource( | |
104 self.compiled_host_fs_factory, | |
105 host_file_system, | |
106 '/'.join((svn_constants.JSON_PATH, 'manifest.json')), | |
107 '/'.join((svn_constants.API_PATH, '_manifest_features.json'))) | |
not at google - send to devlin
2013/07/24 21:45:56
something funny happened here.
jshumway
2013/07/26 00:36:46
Very strange, removed.
| |
108 | |
103 self.template_data_source_factory = TemplateDataSource.Factory( | 109 self.template_data_source_factory = TemplateDataSource.Factory( |
104 self.api_data_source_factory, | 110 self.api_data_source_factory, |
105 self.api_list_data_source_factory, | 111 self.api_list_data_source_factory, |
106 self.intro_data_source_factory, | 112 self.intro_data_source_factory, |
107 self.samples_data_source_factory, | 113 self.samples_data_source_factory, |
108 self.sidenav_data_source_factory, | 114 self.sidenav_data_source_factory, |
109 self.compiled_host_fs_factory, | 115 self.compiled_host_fs_factory, |
110 self.ref_resolver_factory, | 116 self.ref_resolver_factory, |
111 self.manifest_data_source, | 117 self.manifest_data_source, |
112 svn_constants.PUBLIC_TEMPLATE_PATH, | 118 svn_constants.PUBLIC_TEMPLATE_PATH, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
152 object_store_creator) | 158 object_store_creator) |
153 trunk_file_system = host_file_system_creator.Create() | 159 trunk_file_system = host_file_system_creator.Create() |
154 return ServerInstance( | 160 return ServerInstance( |
155 object_store_creator, | 161 object_store_creator, |
156 trunk_file_system, | 162 trunk_file_system, |
157 EmptyDirFileSystem(), | 163 EmptyDirFileSystem(), |
158 '', | 164 '', |
159 CompiledFileSystem.Factory(trunk_file_system, object_store_creator), | 165 CompiledFileSystem.Factory(trunk_file_system, object_store_creator), |
160 TestBranchUtility.CreateWithCannedData(), | 166 TestBranchUtility.CreateWithCannedData(), |
161 host_file_system_creator) | 167 host_file_system_creator) |
OLD | NEW |