def register_(self): 'Store proposed changes' # If the user is not a superuser, if not h.isPersonSuper(): return dict(isOk=0, message='You must be logged in as a superuser to register jobs') # Return return changeJob(dict(request.POST), h.getPersonID())
def update_(self): "Send update confirmation email" # Load personID = h.getPersonID() # If the person is not logged in, if not personID: return dict(isOk=0) # Prepare person = Session.query(model.Person).get(personID) # Return return changePerson(dict(request.POST), "update", "/people/confirm.mako", person)
def update(self): "Show account update page" # Load personID = h.getPersonID() # If the person is not logged in, if not personID: # Return return redirect(url("person_login", targetURL=h.encodeURL("/"))) # Render c.isNew = False person = Session.query(model.Person).get(personID) # Return return formencode.htmlfill.render( render("/people/change.mako"), { "username": person.username, "nickname": person.nickname, "email": person.email, "email_sms": person.email_sms, }, )