def editplotdefs():
user = root.authorized()
if user != 'admin':
return template('error', err="must be admin to edit plots")
app = request.query.app
if config.auth and not root.authorized(): redirect('/login')
if app not in root.myapps: redirect('/apps')
query = (root.apps.id==plots.appid) & (root.apps.name==app)
result = db(query).select()
params = { 'app': app, 'user': user }
return template('plots/plotdefs', params, rows=result)
评论列表
文章目录