Esempio n. 1
0
 def POST(self, id):
     form = Signup.form()
     client = model.get_client(int(id))
     if not form.validates():
         return render.edit(client, form)
     model.update_client(int(id), form.d.Name, form.d.password, form.d.Email, form.d.Credit_Card_No, form.d.Phone_No, form.d.SEX)
     raise web.seeother('/')      
Esempio n. 2
0
 def POST( self, id ):
     form = New.form()
     client = model.get_client( id )
     if not form.validates():
         return render.edit( client, form )
     model.update_client( form.d.dni, form.d.nombre, form.d.apellidos, form.d.direccion, form.d.telefono, form.d.mail )
     raise web.seeother( '/' )