Yet-another simple question: What's the best practice in implementing
a user-land multi-point redirection?

The most common application is redirect user back to the initial page
after login, which pyramid's built-in authentication already works
well with @view_config(permission='...')

However, if I issue an HTTPFound myself pointing to GET login view,
how should the user be redirected back after a successful POST? I
might be able to get away with recording request.referer all the way
and jam a {'referer': initial_url} into the headers of the GET login
view response, but there must be better ways. If I recall correctly,
Pylons' redirect_to() simply works out-of-the-box.

Thanks.

Jerry

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to