| 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 666bf6c0c84c69abf2b2b1e5636dcb83c4d6162a..34ba8516b7c67693156b3b1c6b3ebeba1fefcce0 100755
|
| --- a/chrome/common/extensions/docs/server2/echo_handler.py
|
| +++ b/chrome/common/extensions/docs/server2/echo_handler.py
|
| @@ -85,15 +85,15 @@ class Handler(webapp.RequestHandler):
|
| PUBLIC_TEMPLATE_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,
|
| api_list_data_source,
|
| intro_data_source,
|
| - samples_data_source,
|
| + samples_data_source_factory,
|
| cache_builder,
|
| PUBLIC_TEMPLATE_PATH,
|
| PRIVATE_TEMPLATE_PATH)
|
| @@ -134,11 +134,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()
|
|
|