Question Regarding Unauthorized Logins And Custom Error Messages
I am trying to make it so that my Zope installation brings up a custom error message if a person cannot log into it successfully. I have tried putting in the standard_error_message, but it seems that this type of error is beyond this as I still get a site error screen? Is it possible to have Zope show something else? Jason __________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com
"J. Joy" wrote:
I am trying to make it so that my Zope installation brings up a custom error message if a person cannot log into it successfully. I have tried putting in the standard_error_message, but it seems that this type of error is beyond this as I still get a site error screen? Is it possible to have Zope show something else?
What version of Zope are you using? cheers, Chris
Currently, I am using 2.4.2. Jason --- Chris Withers <chrisw@nipltd.com> wrote:
"J. Joy" wrote:
I am trying to make it so that my Zope installation brings up a custom error message if a person cannot log into it successfully. I have tried putting in the standard_error_message, but it seems that this type of error is beyond this as I still get a site error screen? Is it possible to have Zope show something else?
What version of Zope are you using?
cheers,
Chris
__________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com
Err, is that the only solution? --- Chris Withers <chrisw@nipltd.com> wrote:
"J. Joy" wrote:
Currently, I am using 2.4.2.
Try 2.5.0.
cheers,
Chris
__________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com
Err, is that the only solution?
Yup.
Not quite, but this one is REALLY ugly: You can dive into the source code (it was at "HTTPResponse.py" in lib/python/ZPublisher, starting at line 496 last time I did it). There you can put any valid HTML. You could also put an HTML-based redirect to a page within Zope that could display the error. But then this page has to be world-readable, of course ... ;-) Joachim
Thanks! It works quite well, although a bit dirty. :) Although, I should take the plunge and just go with 2.5 sooner or later. :) Thanks again, Jason --- Joachim Werner <joe@iuveno-net.de> wrote:
Err, is that the only solution?
Yup.
Not quite, but this one is REALLY ugly:
You can dive into the source code (it was at "HTTPResponse.py" in lib/python/ZPublisher, starting at line 496 last time I did it).
There you can put any valid HTML. You could also put an HTML-based redirect to a page within Zope that could display the error. But then this page has to be world-readable, of course ... ;-)
Joachim
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
__________________________________________________ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com
participants (3)
-
Chris Withers -
J. Joy -
Joachim Werner