def POST(self, id_person): persons = config.form_persons() if persons.validates(): config.model.update_persons(**persons.d) raise config.web.seeother('/') else: return config.render.update(persons)
def POST(self): persons = config.form_persons() if persons.validates(): config.model.insert_persons(**persons.d) raise config.web.seeother('/') else: return config.render.insert(persons)
def GET(self, id_person): persons = config.form_persons() result = config.model.get_persons(id_person) persons.fill(result) return config.render.update(persons)
def GET(self): persons = config.form_persons() return config.render.insert(persons)