[web2py] settting two vars to same text

2010-01-15 Thread Wes James
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? thx, -wes -- You received this message because you

Re: [web2py] settting two vars to same text

2010-01-15 Thread Jonathan Lundell
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?

Re: [web2py] settting two vars to same text

2010-01-15 Thread Wes James
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 jlund...@pobox.com wrote: On Jan 15, 2010, at 2:26 PM, Wes

Re: [web2py] settting two vars to same text

2010-01-15 Thread Jeff Bauer
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? The

Re: [web2py] settting two vars to same text

2010-01-15 Thread Jonathan Lundell
On Jan 15, 2010, at 2:42 PM, Wes James wrote: 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 Right. That has the additional advantage that routes.py gets to see it.