diff web/templog.py @ 252:3e6f82347eab

uwsgi bits
author Matt Johnston <matt@ucc.asn.au>
date Sat, 06 Jun 2015 15:34:03 +0800
parents 141948a400a6
children 8ef52f27cf95
line wrap: on
line diff
--- a/web/templog.py	Wed May 27 23:45:03 2015 +0800
+++ b/web/templog.py	Sat Jun 06 15:34:03 2015 +0800
@@ -159,12 +159,18 @@
     #var_lookup = environ['mod_ssl.var_lookup']
     #return var_lookup("SSL_SERVER_I_DN_O")
 
+@route('/wait')
+def wait():
+    response.set_header('Content-Type', 'text/plain')
+    yield 'done'
+
 @bottle.get('/<filename:re:.*\.js>')
 def javascripts(filename):
     response.set_header('Cache-Control', "public, max-age=1296000")
     return bottle.static_file(filename, root='static')
 
 def main():
+    """ for standalone testing """
     #bottle.debug(True)
     #bottle.run(reloader=True)
     bottle.run(server='cgi', reloader=True)