Re: [web2py] Re: Replace default /register and /login views

2013-02-17 Thread Alec Taylor
Thanks On Mon, Feb 18, 2013 at 3:49 AM, Anthony wrote: > By default, web2py looks for a view with the same name as the associated > function in a folder with the same name as the associated controller. In the > scaffolding app, auth actions are handled by the user() function in the > default.py c

[web2py] Re: Replace default /register and /login views

2013-02-17 Thread Anthony
By default, web2py looks for a view with the same name as the associated function in a folder with the same name as the associated controller. In the scaffolding app, auth actions are handled by the user() function in the default.py controller, so it will automatically use the /views/default/us

[web2py] Re: Replace default /register and /login views

2013-02-17 Thread Ron McOuat
The controller and function map to a view file so controller default and function user have used up those 2 levels of default view file definition. You could set response.view = "path to html" in the user function of the default controller depending on arg(0) being login or register. Ron On S