On Thursday, June 23, 2011 7:15:34 AM UTC-4, DanielB wrote: 
>
> Another problem I had with CRUD forms in my case is that I really want 
> to make the if .accepts() call myself so that I can then call the 
> business layer with the database related stuff, but it seems the CRUD 
> forms do this call automatically? 
> In the case of SQLFORM.factory forms I can make the .accepts myself

 
If you want to do your own "if form.accepts()" calls but also want it to 
handle the database stuff, you can use SQLFORM instead of Crud (see 
http://web2py.com/book/default/chapter/07#SQLFORM). You can also use the 
various Crud _onvalidation settings to specify actions to take between 
validation and acceptance (see 
http://web2py.com/book/default/chapter/07#Settings).
 
Anthony

Reply via email to