On Friday, May 13, 2011 12:10:58 PM UTC-4, ma...@rockiger.com wrote: > > def address(): > crud.messages.submit_button = 'Weiter zur Bestätigungsseite' > crud.settings.formstyle='table2cols' > form = crud.create(db.customer) > if form.accepts(request.vars, session, > onvalidation=__address_validator): > crud.create handles accepting/validating the form, so you shouldn't need to call form.accepts separately. Instead, you can specify an onvalidation argument in crud.create. From the book:
"CRUD creates an SQLFORM, but it simplifies the coding because it incorporates the creation of the form, the processing of the form, the notification, and the redirection, all in one single function." Also, see http://web2py.com/book/default/chapter/07#Methods Anthony