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

Unified Diff: appengine/chromium_cq_status/handlers/recent.py

Issue 2111713004: Teach CQ status app to check login status of users. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Review and tests. Created 4 years, 6 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: appengine/chromium_cq_status/handlers/recent.py
diff --git a/appengine/chromium_cq_status/handlers/recent.py b/appengine/chromium_cq_status/handlers/recent.py
new file mode 100644
index 0000000000000000000000000000000000000000..7f7f37f47281df3cdf27ab5862638fc4e371aa64
--- /dev/null
+++ b/appengine/chromium_cq_status/handlers/recent.py
@@ -0,0 +1,16 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from google.appengine.api import users
+import webapp2
+
+from shared import utils
+
+
+class Recent(webapp2.RequestHandler): # pragma: no cover
+ @utils.read_access
+ def get(self):
+ self.response.write(open('templates/recent.html').read() % {
+ 'host': utils.get_friendly_hostname(),
+ })
« no previous file with comments | « appengine/chromium_cq_status/handlers/query.py ('k') | appengine/chromium_cq_status/handlers/stats_data_points.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698