On Oct 17, 2011, at 1:59 PM, Tito Garrido wrote: > It's a turbogears system that has a "request" function inside of a "service" > controller... so it would change the path of the system if I change the name > of the function... maybe there is a way to circumvent this problem using > routes but I don't know :-(
Something like this might work. Assuming that 'request' is currently bound to your function: service_request = request # rebind the request function from gluon import current request = current.request # rebind the web2py request object or more briefly (if obscurely): from gluon import current (service_request, request) = (request, current.request) > > On Sun, Oct 16, 2011 at 5:57 PM, Bruno Rocha <[email protected]> wrote: > you can also do: > > from mymodule import request as legacy_request >

