On Sunday, January 28, 2018 at 12:05:50 PM UTC-5, Alfonso Serra wrote: > > Because i was trying to indicate the form to delete a record but it is > retrieved instead which does not make much sense. If it is not a mistake i > made and the SQLFORM always retrieves the record before deletion it may be > something to improve, unless there is any case im probably missing. >
The record is retrieved when the form is created in order to create the DOM. Record deletion is handled later when .process() is called. In theory, if it is known the record will be deleted, it wouldn't be necessary to create the DOM, but that would require some significant re-architecting. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

