[Zope] passing information to a rendered ZPT from python
martin f krafft
madduck@madduck.net
Sun, 11 May 2003 23:13:46 +0200
--O5XBE6gyVG5Rl6Rj
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
i have a python script that ends with
return getattr(context, 'a_page_template', None).render()
this works like a charm, rendering the page template and outputting
it as if the python script produced it.
however, i am not sure how i can pass some information (e.g.
a username) to the page template. so far i have been using the
REQUEST object, but that's an ugly hack, and it also doesn't work
(see previous post), so i'd like to do it right. how?
--=20
martin; (greetings from the heart of the sun.)
\____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
=20
keyserver problems? http://keyserver.kjsl.com/~jharris/keyserver.html
get my key here: http://madduck.net/me/gpg/publickey
=20
"when faced with a new problem, the wise algorithmist
will first attempt to classify it as np-complete.
this will avoid many tears and tantrums as
algorithm after algorithm fails."
-- g. niruta
--O5XBE6gyVG5Rl6Rj
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+vr0KIgvIgzMMSnURArc4AKDHL92kLnfdneEi20ET3nXNtx8OcQCgtbwS
CCVirVUUu+oX6DmZ/WrDPB0=
=1UEB
-----END PGP SIGNATURE-----
--O5XBE6gyVG5Rl6Rj--