Thanks very much.

I'd just found this in another entry about CRUD...

form=crud.create(db.person, onaccept = lambda form:
redirect(URL(r=request,f='another_form',args=form.vars.id)))

... which led me to this ...

def create():
     form = crud.create(
          db.project,
          next = URL('index'),
          onaccept = lambda form:
process_project_actions(project_id=form.vars.id))
     return dict(form=form)

... which is pretty close to your solution :-)

Thanks again.

Reply via email to