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

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

Issue 10871002: Extensions Docs Server: Testing GithubFileSystem and cron jobs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: small changes Created 8 years, 4 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/handler.py
diff --git a/chrome/common/extensions/docs/server2/handler.py b/chrome/common/extensions/docs/server2/handler.py
index 645dbfc1c616691b231d91c4bde94738bee0eaf8..220d1639fbc5826fd2ff43ca895d72384e7b6ddf 100644
--- a/chrome/common/extensions/docs/server2/handler.py
+++ b/chrome/common/extensions/docs/server2/handler.py
@@ -159,11 +159,13 @@ class Handler(webapp.RequestHandler):
self.response)
def _Render(self, files, branch):
+ original_response = self.response
for f in files:
path = branch + f.split(PUBLIC_TEMPLATE_PATH)[-1]
self.request = _MockRequest(path)
self.response = _MockResponse()
self._HandleGet(path)
+ self.response = original_response
def _HandleCron(self, path):
branch = path.split('/')[-1]
@@ -174,6 +176,7 @@ class Handler(webapp.RequestHandler):
render_cache = builder.build(lambda x: self._Render(x, branch),
fs_cache.RENDER)
render_cache.GetFromFileListing(PUBLIC_TEMPLATE_PATH)
+ self.response.out.write('Success')
def get(self):
path = self.request.path

Powered by Google App Engine
This is Rietveld 408576698