Convert profiler/start page to html
authorSverre Rabbelier <srabbelier@gmail.com>
Sat, 29 Aug 2009 14:31:26 -0700
changeset 2848 17a31a7e6abc
parent 2847 b587e25a92bd
child 2849 c0462a1d3958
Convert profiler/start page to html
app/app_profiler/app_profiler.py
--- a/app/app_profiler/app_profiler.py	Sat Aug 29 14:30:52 2009 -0700
+++ b/app/app_profiler/app_profiler.py	Sat Aug 29 14:31:26 2009 -0700
@@ -176,9 +176,11 @@
     def get(self):
         gp = get_global_profiler()
         gp.start_profiling()
-        self.response.headers['Content-Type'] = "text/plain"
-        self.response.out.write("Started profiling (key: %s).\n" % gp.profile_key)
-        self.response.out.write("Retrieve saved results at <a href='/profiler/show?key=%(key)s'>/profiler/show?key=%(key)s).\n" % {'key':gp.profile_key})
+        self.response.out.write("<html><body>")
+        self.response.out.write("Started profiling (key: %s). <br />" % gp.profile_key)
+        self.response.out.write("Retrieve saved results at "
+            "<a href='/profiler/show?key=%(key)s'>/profiler/show?key=%(key)s</a>. <br />" % {'key':gp.profile_key})
+        self.response.out.write("</body></html>")
 
 class stop_profiler(webapp.RequestHandler):
     def get(self):