def create_plot():
user = root.authorized()
if user != 'admin':
return template('error', err="must be admin to edit plots")
app = request.forms.get('app')
r = request
plots.insert(appid=root.myapps[app].appid, ptype=r.forms['ptype'],
title=r.forms['title'], options=r.forms['options'])
db.commit()
redirect ('/plots/edit?app='+app)
评论列表
文章目录