| 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 fbb9e38e95ea3bac20d1a76cea50f66bea1c0530..858ab7ef45ded220a0bea6c465b2f1dc81d5d934 100755
|
| --- a/chrome/common/extensions/docs/server2/echo_handler.py
|
| +++ b/chrome/common/extensions/docs/server2/echo_handler.py
|
| @@ -80,14 +80,14 @@ class Handler(webapp.RequestHandler):
|
| api_data_source = APIDataSource(cache_builder, API_PATH)
|
| intro_data_source = IntroDataSource(cache_builder,
|
| [INTRO_PATH, ARTICLE_PATH])
|
| - samples_data_source = SamplesDataSource(file_system,
|
| - cache_builder,
|
| - EXAMPLES_PATH)
|
| + samples_data_source_factory = SamplesDataSource.Factory(file_system,
|
| + cache_builder,
|
| + EXAMPLES_PATH)
|
| template_data_source_factory = TemplateDataSource.Factory(
|
| branch,
|
| api_data_source,
|
| intro_data_source,
|
| - samples_data_source,
|
| + samples_data_source_factory,
|
| cache_builder,
|
| [PUBLIC_TEMPLATE_PATH, PRIVATE_TEMPLATE_PATH])
|
| example_zipper = ExampleZipper(file_system,
|
| @@ -127,11 +127,7 @@ class Handler(webapp.RequestHandler):
|
| self.response)
|
|
|
| def main():
|
| - handlers = [
|
| - ('/.*', Handler),
|
| - ]
|
| - run_wsgi_app(webapp.WSGIApplication(handlers, debug=False))
|
| -
|
| + run_wsgi_app(webapp.WSGIApplication([('/.*', Handler)], debug=False))
|
|
|
| if __name__ == '__main__':
|
| main()
|
|
|