def POST(self): form = RegisterForm() if not form.validates(): return render.register(form) user = models.User.create(form.d.username, form.d.password, form.d.email) seeother = authorize(user) raise seeother
def GET(self): form = RegisterForm() return render.register(form, is_loggedin())