hmm - yes...  maybe:

login_page = URL(r=request,c='default',f='login')
auth.settings.verify_email_next = login_page
auth.settings.request_reset_password_next = login_page

thx,

-wes

On Fri, Jan 15, 2010 at 3:37 PM, Jonathan Lundell <[email protected]> wrote:
> On Jan 15, 2010, at 2:26 PM, Wes James wrote:
>
>> This seems to work, but is there a better way to set some vars to the
>> same value?
>>
>> auth.settings.verify_email_next =
>> auth.settings.request_reset_password_next ='/app/default/login'
>>
>> Is this a good technique or keep vars=value on the same line?
>
> I think your instinct that this isn't quite right (at least stylistically) is 
> sound.
>
> I don't think you really gain anything over just assigning it twice:
>
> auth.settings.verify_email_next = '/app/default/login'
> auth.settings.request_reset_password_next = '/app/default/login'
>
> Or, if that doesn't satisfy:
>
> auth.settings.verify_email_next = '/app/default/login'
> auth.settings.request_reset_password_next = auth.settings.verify_email_next
>
> Or even
>
> loginpage = '/app/default/login'
> auth.settings.verify_email_next = loginpage
> auth.settings.request_reset_password_next = loginpage
>
> (BTW, don't you want to use URL() here?)
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/web2py?hl=en.
>
>
>
>
-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to