def showmyapps():
user = root.authorized()
uid = users(user=user).id
app = root.active_app()
result = db((apps.id == app_user.appid) & (uid == app_user.uid)).select(orderby=apps.name)
if user == "admin":
configurable = True
else:
configurable = False
params = { 'configurable': configurable, 'user': user, 'app': app }
return template('myapps', params, rows=result)
评论列表
文章目录