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

Unified Diff: chrome/common/extensions/docs/server2/echo_handler.py

Issue 10804036: Extensions Docs Server: Internationalized samples (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: encodings 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 side-by-side diff with in-line comments
Download patch
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()

Powered by Google App Engine
This is Rietveld 408576698