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

Side by Side Diff: chrome/common/extensions/docs/server2/echo_handler.py

Issue 10808065: Extensions Docs Server: TDS fix, no local caching (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import logging 6 import logging
7 import os 7 import os
8 import sys 8 import sys
9 9
10 # Add the original server location to sys.path so we are able to import 10 # Add the original server location to sys.path so we are able to import
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 [INTRO_PATH, ARTICLE_PATH]) 82 [INTRO_PATH, ARTICLE_PATH])
83 samples_data_source = SamplesDataSource(file_system, 83 samples_data_source = SamplesDataSource(file_system,
84 cache_builder, 84 cache_builder,
85 EXAMPLES_PATH) 85 EXAMPLES_PATH)
86 template_data_source_factory = TemplateDataSource.Factory( 86 template_data_source_factory = TemplateDataSource.Factory(
87 branch, 87 branch,
88 api_data_source, 88 api_data_source,
89 intro_data_source, 89 intro_data_source,
90 samples_data_source, 90 samples_data_source,
91 cache_builder, 91 cache_builder,
92 [PUBLIC_TEMPLATE_PATH, PRIVATE_TEMPLATE_PATH]) 92 PUBLIC_TEMPLATE_PATH,
93 PRIVATE_TEMPLATE_PATH)
93 example_zipper = ExampleZipper(file_system, 94 example_zipper = ExampleZipper(file_system,
94 cache_builder, 95 cache_builder,
95 DOCS_PATH, 96 DOCS_PATH,
96 EXAMPLES_PATH) 97 EXAMPLES_PATH)
97 SERVER_INSTANCES[branch] = ServerInstance( 98 SERVER_INSTANCES[branch] = ServerInstance(
98 template_data_source_factory, 99 template_data_source_factory,
99 example_zipper, 100 example_zipper,
100 cache_builder) 101 cache_builder)
101 return SERVER_INSTANCES[branch] 102 return SERVER_INSTANCES[branch]
102 103
(...skipping 25 matching lines...) Expand all
128 129
129 def main(): 130 def main():
130 handlers = [ 131 handlers = [
131 ('/.*', Handler), 132 ('/.*', Handler),
132 ] 133 ]
133 run_wsgi_app(webapp.WSGIApplication(handlers, debug=False)) 134 run_wsgi_app(webapp.WSGIApplication(handlers, debug=False))
134 135
135 136
136 if __name__ == '__main__': 137 if __name__ == '__main__':
137 main() 138 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698