[web2py] Re: Reusing a view

2011-10-18 Thread Anthony
On Tuesday, October 18, 2011 4:20:55 PM UTC-4, pepper_bg wrote: I am curious about the general case of how a view file can be reused but here is my specific example. I need custom user registration and profile pages so my controller (default.py) looks like: def profile(): return

[web2py] Re: Reusing a view

2011-10-18 Thread pepper_bg
response.view was what I was looking for (remember seeing it somewhere but then lost it), thank you guys... Rather than providing links to /user/register and then redirecting to /register, why not just provide links directly to /register? You don't have to route requests to register or to view

[web2py] Re: Reusing a view

2011-10-18 Thread Anthony
On Tuesday, October 18, 2011 6:50:06 PM UTC-4, pepper_bg wrote: Rather than providing links to /user/register and then redirecting to /register, why not just provide links directly to /register? You don't have to route requests to register or to view the profile through the user