[Zope] Calling DTML after executing sa script

Mark Roach mrroach@okmaybe.com
12 Sep 2002 15:38:04 -0500


--=-uKT71fRTevHWcxNWB8ZA
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On Wed, 2002-09-11 at 21:23, michael.ta=F1ag wrote:
> Hi!
>=20
> How do you call a DTML method/document after you have executed a python
> script? Can you also pass some values to this DTML document/method from
> the script?
>=20

Hello, michael. What I have done is to put:
return context.dtmlMethod()

at the end of my script. If you just want to pass along the request
received by the script you can do :
return context.dtmlMethod(context, context.REQUEST)

you can also pass named parameters with:
return context.dtmlMethod(context, context.REQUEST,paramname=3Dvalue)

I hope that answers your question, I am pretty much a newbie as well.

-Mark

--=-uKT71fRTevHWcxNWB8ZA
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Public key at http://www.uhg.net/mrroach.gpg

iD8DBQA9gPssxyZQWqn8vcMRAtotAJ9HZ4P13yvok0zlnZAERzmA21CMlgCgkXGG
y+n3K2IZk2RQ0RTeCjX2hKM=
=WZ0R
-----END PGP SIGNATURE-----

--=-uKT71fRTevHWcxNWB8ZA--