Mercurial > templog
comparison web/templog.py @ 540:0f665a84b581
gevent doesn't work well with subprocess
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 10 May 2015 21:13:49 +0800 |
parents | b78961d2e3a3 |
children | c90190a380c6 |
comparison
equal
deleted
inserted
replaced
539:b78961d2e3a3 | 540:0f665a84b581 |
---|---|
27 def run(*args, **argm): | 27 def run(*args, **argm): |
28 argm['server'] = 'gevent' | 28 argm['server'] = 'gevent' |
29 super(TemplogBottle, self).run(*args, **argm) | 29 super(TemplogBottle, self).run(*args, **argm) |
30 print "ran custom bottle" | 30 print "ran custom bottle" |
31 | 31 |
32 bottle.default_app.push(TemplogBottle()) | 32 #bottle.default_app.push(TemplogBottle()) |
33 | 33 |
34 secure.setup_csrf() | 34 secure.setup_csrf() |
35 | 35 |
36 @route('/update', method='post') | 36 @route('/update', method='post') |
37 def update(): | 37 def update(): |