The example at http://web2py.com/books/default/chapter/29/07#SQLFORM shows this function below. But what is the syntax for calling a function from a view?
Would it be this? {{=display_form()}} thanks, Alex Glaros def display_form(): form = SQLFORM(db.person) if form.process().accepted: response.flash = 'form accepted' elif form.errors: response.flash = 'form has errors' else: response.flash = 'please fill out the form' return dict(form=form) --