diff web/templog.py @ 552:a335760ad447

uwsgi bits
author Matt Johnston <matt@ucc.asn.au>
date Sat, 06 Jun 2015 15:34:03 +0800
parents 0baa57b6d9ca
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)