comparison web/templog.py @ 202:6dd157a12035

Add url link, improve atomicfile
author Matt Johnston <matt@ucc.asn.au>
date Sun, 30 Mar 2014 20:20:30 +0800
parents 4fa8cbf31065
children 59379b2bd056
comparison
equal deleted inserted replaced
201:159b0e77ab21 202:6dd157a12035
67 return "Good" 67 return "Good"
68 68
69 @route('/set') 69 @route('/set')
70 def set(): 70 def set():
71 allowed = ["false", "true"][secure.get_user_hash() in config.ALLOWED_USERS] 71 allowed = ["false", "true"][secure.get_user_hash() in config.ALLOWED_USERS]
72 response.set_header('Cache-Control', 'no-cache')
72 return bottle.template('set', 73 return bottle.template('set',
73 inline_data = log.get_params(), 74 inline_data = log.get_params(),
74 csrf_blob = secure.get_csrf_blob(), 75 csrf_blob = secure.get_csrf_blob(),
75 allowed = allowed) 76 allowed = allowed)
76 77