if you use
form=SQFORM(db.table)
if form.accepts(request.vars,session):
# the id in
form.vars.id
redirect(....)
return dict(form)
if you use
form=crud.create(db.table)
the accept and redirect are done inside crud create therefore there is
no scope where you can access the
form.vars.id. You can do
form=crud.create(db.table,onaccept=lambda form: do_something_with
(
for.vars.id))
that will be executed before redirection.