I have not closely followed this thread so I am missing something but this:
if form_car.accepts(request.vars, session, dbio=False): if form_customer.accepts(request.vars, session, dbio=False): do something will not work because you cannot have nested accepts. On May 16, 3:51 pm, pbreit <pbreitenb...@gmail.com> wrote: > There might have been some confusion. You don't have to break your form or > pages into multiple steps. But you can break the code in your controller > into different steps. One controller can work with multiple tables. > > You can do stuff like: > > form_car = SQLFORM(db.car) > form_customer = SQLFORM(db.customer) > if form_car.accepts(request.vars, session, dbio=False): > if form_customer.accepts(request.vars, session, dbio=False): > do something > return dict(form_car=form_car, form_customer=form_customer) > > You might need to use dbio=False so that Web2py doesn't automatically update > the database. This can all be done on one web page.