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
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?
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
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
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.
5 matches
Mail list logo