On Sat, 2011-12-10 at 22:39 -0800, rihad wrote:
> Sorry if a bit irrelevant. The changelog says: "The SQLAlchemy + URL
> Dispatch Wiki Tutorial has been updated.". But what I believe to be a
> bug that I mentioned here: 
> http://groups.google.com/group/pylons-devel/browse_thread/thread/d81a2d98cb64dd6b
> has remained seemingly unnoticed.

Neither thing you mention there seems to be a bug.  The line:

   url = request.application_url + '/login'

Is constructed for the benefit of the template, which uses it as a form
post target.  It can't be url = request.url, as the current URL when the
login view is invoked may not be the login form.  The line:

   config.add_view('tutorial.login.login', route_name='login', 
                    renderer='tutorial:templates/login.pt')

Takes care of the situation when it's not rendered as an exception view.

As far as the exception goes, HTTPForbidden is what Pyramid uses internally to 
signify 
an authorization failure happened.  I'm not sure there's another natural 
exception
to use here.



> 


-- 
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