comparison web/templog.py @ 501:236e5d131b3e

Add url link, improve atomicfile
author Matt Johnston <matt@ucc.asn.au>
date Sun, 30 Mar 2014 20:20:30 +0800
parents 23c6cf01d237
children 59379b2bd056
comparison
equal deleted inserted replaced
500:136b1343e640 501:236e5d131b3e
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