[Zope] returning an HTML comment from ZPT

dman dman@dman.ddts.net
Wed, 22 May 2002 16:31:30 -0500


--J2SCkAp4GZ/dPZZf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable


I want to be able to return an HTML comment from a ZPT object.  The
purpose of this comment is to contain technical error messages that
will be hidden from the normal user but available to those who need
it.  The idea is much like zope's error pages that put a stack trace
inside an HTML comment.  The problems I'm running into are :

1)  ZPT doesn't expand TAL statements inside an HTML comment

2)  Other means of generating the comment tags result in html-quoting
    the commend tag which causes the browser to render it as normal text.

    I've tried the following :

    <span tal:replace=3D"python:'<!--'"> </span>
    <span tal:replace=3D"python:'\x3c!--'"> </span>

How might I achieve the desired effect?

TIA,
-D

--=20

Trust in the Lord with all your heart and lean not on your own
understanding; in all your ways acknowledge Him, and He will make your
paths straight.
        Proverbs 3:5-6
=20
GnuPG key : http://dman.ddts.net/~dman/public_key.gpg


--J2SCkAp4GZ/dPZZf
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iEYEARECAAYFAjzsDjIACgkQO8l8XBKTpRTK2ACfSqZqo4oTloTiP+7taGSWDF4K
IgIAnR1hFuxZeK0e/ee3mK9H/BsRszJt
=1PvW
-----END PGP SIGNATURE-----

--J2SCkAp4GZ/dPZZf--