[Zope] Custom unauthorized message

The Doctor What docwhat@gerf.org
Thu, 19 Apr 2001 08:48:21 -0500


--LZvS9be/3tNcYl/X
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Chris Withers (chrisw@nipltd.com) [010419 03:52]:
> The Doctor What wrote:
> >=20
> > --- /tmp/ZPublisher.orig/HTTPResponse.py        Mon Feb 12 12:53:20 2001
> > +++ HTTPResponse.py     Wed Apr 18 10:29:36 2001
> > @@ -471,9 +471,11 @@
> >          tb=3Dself.format_exception(t,v,tb,200)
> >          tb=3Djoin(tb,'\n')
> >          tb=3Dself.quoteHTML(tb)
> > -        if self.debug_mode: _tbopen, _tbclose =3D '<PRE>', '</PRE>'
> > -        else:               _tbopen, _tbclose =3D '<!--',  '-->'
> > -        return "\n%s\n%s\n%s" % (_tbopen, tb, _tbclose)
> > +        if self.debug_mode:
> > +            _tbopen, _tbclose =3D '<PRE>', '</PRE>'
> > +            return "\n%s\n%s\n%s" % (_tbopen, tb, _tbclose)
> > +        else:
> > +            return "\n"
> >=20
>=20
> Cool, I've stuck this in the collector. Let's pray this one doesn't get i=
gnored
> as well (I'd really like to see someone argue why its a bad idea!)

Unfortunately, I have a reason:  It kills the traceback for
hardcoded error pages. :-(  This would be great if you have *no*
hardcoded pages except in the case of a catastrophic failure (ie,
the error page produces an error.

Ciao!

--=20
You have been infected by the Unix variant of the "love bug" virus. Please =
delet a bunch of files and forward this message to everyone you know.

The Doctor What: "What, Doctor What"             http://docwhat.gerf.org/
docwhat@gerf.org                                                   KF6VNC

--LZvS9be/3tNcYl/X
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE63uykkJDks3INMZURAmU/AJ9uARvMK+gphKoYQO0Vy2czTn0smACgupll
gdR9NbW0kSW7GXo1U2vtCOI=
=8GD2
-----END PGP SIGNATURE-----

--LZvS9be/3tNcYl/X--