INNER CODE UNIT · Python
DDNSIndex
ab77/netflix-proxy · auth/auth.py:559
class DDNSIndex:
ddns_add_form = web.form.Form(web.form.Textbox('domain', web.form.notnull))
def GET(self):
try:
if 'user' in session:
domains = db.query('SELECT * FROM DDNS WHERE user_id=$user_id',
vars={'user_id': session.user['ID']})
return render.ddns(domains, DDNSIndex.ddns_add_form())
else:
web.seeother('/login')
except Exception as e:
flash('error', 'Please update the database schema. See README for details.')
web.debug(traceback.print_exc())
raise web.seeother('/')
class DDNSAdd: