Chromium Code Reviews| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 host_file_system_creator, | 48 host_file_system_creator, |
| 49 host_file_system, | 49 host_file_system, |
| 50 branch_utility) | 50 branch_utility) |
| 51 | 51 |
| 52 self.availability_finder = AvailabilityFinder( | 52 self.availability_finder = AvailabilityFinder( |
| 53 self.host_file_system_iterator, | 53 self.host_file_system_iterator, |
| 54 object_store_creator, | 54 object_store_creator, |
| 55 branch_utility) | 55 branch_utility) |
| 56 | 56 |
| 57 self.api_list_data_source_factory = APIListDataSource.Factory( | 57 self.api_list_data_source_factory = APIListDataSource.Factory( |
| 58 self.compiled_host_fs_factory, | 58 host_file_system, |
| 59 self.host_file_system, | 59 svn_constants.PUBLIC_TEMPLATE_PATH, |
| 60 svn_constants.API_PATH, | 60 svn_constants.API_FEATURES_PATH, |
| 61 svn_constants.PUBLIC_TEMPLATE_PATH) | 61 svn_constants.MANIFEST_FEATURES_PATH, |
| 62 svn_constants.PERMISSION_FEATURES_PATH) | |
| 62 | 63 |
| 63 self.api_data_source_factory = APIDataSource.Factory( | 64 self.api_data_source_factory = APIDataSource.Factory( |
| 64 self.compiled_host_fs_factory, | 65 self.compiled_host_fs_factory, |
| 65 svn_constants.API_PATH, | 66 svn_constants.API_PATH, |
| 66 self.availability_finder, | 67 self.availability_finder, |
| 67 branch_utility) | 68 branch_utility) |
| 68 | 69 |
| 69 self.ref_resolver_factory = ReferenceResolver.Factory( | 70 self.ref_resolver_factory = ReferenceResolver.Factory( |
| 70 self.api_data_source_factory, | 71 self.api_data_source_factory, |
| 71 self.api_list_data_source_factory, | 72 self.api_list_data_source_factory, |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 94 self.samples_data_source_factory) | 95 self.samples_data_source_factory) |
| 95 | 96 |
| 96 self.intro_data_source_factory = IntroDataSource.Factory( | 97 self.intro_data_source_factory = IntroDataSource.Factory( |
| 97 self.compiled_host_fs_factory, | 98 self.compiled_host_fs_factory, |
| 98 self.ref_resolver_factory, | 99 self.ref_resolver_factory, |
| 99 [svn_constants.INTRO_PATH, svn_constants.ARTICLE_PATH]) | 100 [svn_constants.INTRO_PATH, svn_constants.ARTICLE_PATH]) |
| 100 | 101 |
| 101 self.permissions_data_source = PermissionsDataSource( | 102 self.permissions_data_source = PermissionsDataSource( |
| 102 self.compiled_host_fs_factory, | 103 self.compiled_host_fs_factory, |
| 103 self.host_file_system, | 104 self.host_file_system, |
| 104 '/'.join((svn_constants.API_PATH, '_api_features.json')), | 105 svn_constants.API_FEATURES_PATH, |
| 105 '/'.join((svn_constants.API_PATH, '_permission_features.json')), | 106 svn_constants.PERMISSION_FEATURES_PATH, |
| 106 '/'.join((svn_constants.JSON_PATH, 'permissions.json'))) | 107 svn_constants.PERMISSIONS_JSON_PATH) |
| 107 | 108 |
| 108 self.example_zipper = ExampleZipper( | 109 self.example_zipper = ExampleZipper( |
| 109 self.compiled_host_fs_factory, | 110 self.compiled_host_fs_factory, |
| 110 self.host_file_system, | 111 self.host_file_system, |
| 111 svn_constants.DOCS_PATH) | 112 svn_constants.DOCS_PATH) |
| 112 | 113 |
| 113 self.path_canonicalizer = PathCanonicalizer(self.compiled_host_fs_factory) | 114 self.path_canonicalizer = PathCanonicalizer(self.compiled_host_fs_factory) |
| 114 | 115 |
| 115 self.redirector = Redirector( | 116 self.redirector = Redirector( |
| 116 self.compiled_host_fs_factory, | 117 self.compiled_host_fs_factory, |
| 117 self.host_file_system, | 118 self.host_file_system, |
| 118 svn_constants.PUBLIC_TEMPLATE_PATH) | 119 svn_constants.PUBLIC_TEMPLATE_PATH) |
| 119 | 120 |
| 120 self.strings_json_path = '/'.join((svn_constants.JSON_PATH, 'strings.json')) | 121 self.strings_json_path = svn_constants.STRINGS_JSON_PATH |
| 121 self.sidenav_json_base_path = svn_constants.JSON_PATH | 122 self.sidenav_json_base_path = svn_constants.JSON_PATH |
| 122 self.manifest_json_path = '/'.join( | 123 self.manifest_json_path = svn_constants.MANIFEST_JSON_PATH |
| 123 (svn_constants.JSON_PATH, 'manifest.json')) | 124 self.manifest_features_path = svn_constants.MANIFEST_FEATURES_PATH |
|
not at google - send to devlin
2013/09/19 19:21:52
thanks for the cleanup
| |
| 124 self.manifest_features_path = '/'.join( | |
| 125 (svn_constants.API_PATH, '_manifest_features.json')) | |
| 126 | 125 |
| 127 self.template_data_source_factory = TemplateDataSource.Factory( | 126 self.template_data_source_factory = TemplateDataSource.Factory( |
| 128 self.api_data_source_factory, | 127 self.api_data_source_factory, |
| 129 self.api_list_data_source_factory, | 128 self.api_list_data_source_factory, |
| 130 self.intro_data_source_factory, | 129 self.intro_data_source_factory, |
| 131 self.samples_data_source_factory, | 130 self.samples_data_source_factory, |
| 132 self.compiled_host_fs_factory, | 131 self.compiled_host_fs_factory, |
| 133 self.ref_resolver_factory, | 132 self.ref_resolver_factory, |
| 134 self.permissions_data_source, | 133 self.permissions_data_source, |
| 135 svn_constants.PUBLIC_TEMPLATE_PATH, | 134 svn_constants.PUBLIC_TEMPLATE_PATH, |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 162 object_store_creator) | 161 object_store_creator) |
| 163 trunk_file_system = host_file_system_creator.Create() | 162 trunk_file_system = host_file_system_creator.Create() |
| 164 return ServerInstance( | 163 return ServerInstance( |
| 165 object_store_creator, | 164 object_store_creator, |
| 166 trunk_file_system, | 165 trunk_file_system, |
| 167 EmptyDirFileSystem(), | 166 EmptyDirFileSystem(), |
| 168 '', | 167 '', |
| 169 CompiledFileSystem.Factory(trunk_file_system, object_store_creator), | 168 CompiledFileSystem.Factory(trunk_file_system, object_store_creator), |
| 170 TestBranchUtility.CreateWithCannedData(), | 169 TestBranchUtility.CreateWithCannedData(), |
| 171 host_file_system_creator) | 170 host_file_system_creator) |
| OLD | NEW |