Hi list,
I recently started using pylons so I'm not sure what I might be missing here
but, its my instinct that the following issue is probably a bug.
I want to use repoze.who.plugins.baiscauth; the end result is that required
auth results in a WWW-Authenticate header being sent which triggers that fugly
login dialog window in your browser ( or allows curl, wget and other useful
applications to connect using "server authentication"). After countless hours
of thinking I has bad configs with my repoze setup, I started to look
elsewhere... in the end I found out that commenting out the StatusCodeRedirect
assignments in middleware.py fixed the problem.
The basicauth request headers was not being forwarded with the environment to
the error controller so the header did not exist and my fugly box was no show.
Additionally my errors 404, 401 etc get picked up via
request.environ.get('pylons.original_response') in my error controller and
create a malformed html page (an html document inside the div node of another
html document of the error template).
Pylons has been great to me so far and I'm loving it. But the error handler
does not seem to be doing things in a why I would expect. Like using render if
it can.
Is there another ErrorHandler/StatusCodeRedirect object or way of configuring
error management which would have just the "original response.
Or does any *good* documentation including important gotyas for managing the
error document presentation ones self?
I'm using pylons '0.10rc1' with python 2.6.4. My project may been from 0.9.7
Thanks
PS: This may come twice after 12hrs of waiting for the message to be moderated
I an trying agin.
--
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.