Re: [web2py] Re: parametric router enhancements

2011-08-28 Thread Jonathan Lundell
On Aug 28, 2011, at 3:05 PM, Massimo Di Pierro wrote: > Technically you can do: But only in the same controller. > > def a(): >if request.vars.test: > response.view = 'default/b.html' > return b() >return dict() > > def b(): >return dict() > > Anyway, take a look a

[web2py] Re: parametric router enhancements

2011-08-28 Thread Massimo Di Pierro
Technically you can do: def a(): if request.vars.test: response.view = 'default/b.html' return b() return dict() def b(): return dict() Anyway, take a look at these lines in main.py: http_response, new_environ = rewrite.try_rewrite_on_error( http_respon