Of course, web2py api has the tools to return data back in a custom way, validate and do db i/o. The patch saves code for those not worried about what's in the output. Let the client code handle it. For example:
def myaction():
form = SQLFORM(db.data)
if form.process().accepted:
...
return form.as_json()
A client that doesn't need the html can simply read the form content and provide it's own user interface by using the database scheme serialization feature and then submitting the data with the form parameters. Custom implementations i.e. for adressing performance and desing issues not solved by a generic interface can always use the common api.
BTW: It would be useful also a javascript function at web2py.js to handle non html form submission as a wrapper for jQuery.post(). Something like:
formsubmit (action, vars, protocol, callback)
I think web2py_trap_form does something similar but it needs an html form