comparison web/templog.py @ 581:b4d6f1ae0b9e

make overshoot_factor floating point add a proper error message for noparamsyet
author Matt Johnston <matt@ucc.asn.au>
date Sun, 29 Nov 2015 09:30:36 +0800
parents a3e9c97c448b
children 788d713f6b87 f7261dd970da
comparison
equal deleted inserted replaced
574:329e65ea1edc 581:b4d6f1ae0b9e
92 92
93 @route('/set') 93 @route('/set')
94 def set(): 94 def set():
95 allowed = ["false", "true"][secure.check_user_hash(config.ALLOWED_USERS)] 95 allowed = ["false", "true"][secure.check_user_hash(config.ALLOWED_USERS)]
96 response.set_header('Cache-Control', 'no-cache') 96 response.set_header('Cache-Control', 'no-cache')
97 inline_data = log.get_params()
98 if not inline_data:
99 response.status = 503 # Service Unavailable
100 return bottle.template('noparamsyet')
101
97 return bottle.template('set', 102 return bottle.template('set',
98 inline_data = log.get_params(), 103 inline_data = inline_data,
99 csrf_blob = secure.get_csrf_blob(), 104 csrf_blob = secure.get_csrf_blob(),
100 allowed = allowed) 105 allowed = allowed)
101 106
102 def get_request_zoom(): 107 def get_request_zoom():
103 """ returns (length, end) tuple. 108 """ returns (length, end) tuple.