I regularly search the web2py source using this Google query:
The term does not seem to appear anywhere in the Crud source. So..
1. How should I have known?
2. More to the point--why?
What makes this:
def new():
crud = Crud(db)
form = crud.create(db.todo)
return dict(form=form)
Worse than this?
def new():
form=SQLFORM(db.todo)
if form.process().accepted:
response.flash= 'Thank you.'
elif form.errors:
response.flash = 'Form has errors.'
else:
response.flash = 'Form is initialized.'
return dict(form=form)