Re: [web2py] Use the other login page instead of index

2012-03-05 Thread Sanjeet Kumar
Actually i want to go to the another function in the default controller
when i click on the login it should be call the function such as emp()
istead of index and after login i want to stay on the emp() only

On Mon, Mar 5, 2012 at 1:14 PM, Bruno Rocha rochacbr...@gmail.com wrote:

 the login is by default in defautl/user/login not in index.

 you can set your own controller and function.

 Create a new controller with a function to expose dict(form=auth()) and in
 models set:

 auth.settings.controller = myothercontroller
 auth.settings.function = myfunction

 I am not sure if navbar will be automatically updated but you can create
 your own links using URL(controller, function, args=login)



 http://zerp.ly/rochacbruno
 Em 05/03/2012 04:13, Sanjeet Kumar sanjeet@gmail.com escreveu:

 I am using the index as my home page and i want to call the another
 controller for login when the user click on the login link




Re: [web2py] Use the other login page instead of index

2012-03-05 Thread Sanjeet Kumar
My problem is solved through capturing the login event

On Mon, Mar 5, 2012 at 1:48 PM, Sanjeet Kumar sanjeet@gmail.com wrote:

 Actually i want to go to the another function in the default controller
 when i click on the login it should be call the function such as emp()
 istead of index and after login i want to stay on the emp() only


 On Mon, Mar 5, 2012 at 1:14 PM, Bruno Rocha rochacbr...@gmail.com wrote:

 the login is by default in defautl/user/login not in index.

 you can set your own controller and function.

 Create a new controller with a function to expose dict(form=auth()) and
 in models set:

 auth.settings.controller = myothercontroller
 auth.settings.function = myfunction

 I am not sure if navbar will be automatically updated but you can create
 your own links using URL(controller, function, args=login)



 http://zerp.ly/rochacbruno
 Em 05/03/2012 04:13, Sanjeet Kumar sanjeet@gmail.com escreveu:

 I am using the index as my home page and i want to call the another
 controller for login when the user click on the login link





[web2py] Use the other login page instead of index

2012-03-04 Thread Sanjeet Kumar
I am using the index as my home page and i want to call the another 
controller for login when the user click on the login link 

Re: [web2py] Use the other login page instead of index

2012-03-04 Thread Bruno Rocha
the login is by default in defautl/user/login not in index.

you can set your own controller and function.

Create a new controller with a function to expose dict(form=auth()) and in
models set:

auth.settings.controller = myothercontroller
auth.settings.function = myfunction

I am not sure if navbar will be automatically updated but you can create
your own links using URL(controller, function, args=login)



http://zerp.ly/rochacbruno
Em 05/03/2012 04:13, Sanjeet Kumar sanjeet@gmail.com escreveu:

 I am using the index as my home page and i want to call the another
 controller for login when the user click on the login link