By default, web2py have in gluon/tools.py, class Crud:
self.settings.create_next = URL(r=request)
self.settings.update_next = URL(r=request)
self.settings.delete_next = URL(r=request)
So, if you have:
mycrud = Crud(globals(), db)
you can change URLs with:
mycrud.settings.create_next = URL(r=request, f='myfunction', args='...')
Same for update_next and delete_next.
--
Álvaro Justen
Peta5 - Telecomunicações e Software Livre
21 3021-6001 / 9898-0141
http://www.peta5.com.br/
You can access web2py epydoc:
http://localhost:8000/examples/static/epydoc/index.html
And inside this, you can browse source of funtions/classes.
You also can learn with Auth and Crud examples at:
http://localhost:8000/examples/default/tools
> Is there and equally easy fix for replacing the SQLForm used in the
> update/add controller function?
http://www.web2py.com/AlterEgo/default/show/205
> Thanks again for the quick response.
You're welcome.