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

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: 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..58976560bf9a4e0671b810fadbad294db737c66f 100644
--- a/chrome/common/extensions/docs/server2/handler.py
+++ b/chrome/common/extensions/docs/server2/handler.py
@@ -166,6 +166,7 @@ class Handler(webapp.RequestHandler):
self._HandleGet(path)
def _HandleCron(self, path):
+ original_response = self.response
not at google - send to devlin 2012/08/22 13:57:58 rather than this, could you make _Render save then
cduvall 2012/08/22 17:20:43 Done.
branch = path.split('/')[-1]
logging.info('Running cron job for %s.' % branch)
branch_memcache = InMemoryObjectStore(branch)
@@ -174,6 +175,7 @@ class Handler(webapp.RequestHandler):
render_cache = builder.build(lambda x: self._Render(x, branch),
fs_cache.RENDER)
render_cache.GetFromFileListing(PUBLIC_TEMPLATE_PATH)
+ original_response.out.write('Success')
def get(self):
path = self.request.path

Powered by Google App Engine
This is Rietveld 408576698