[Zope] call DTMLMethod with parameter from Python
Eckhoff, Damon
damon@missouri.edu
Fri, 29 Mar 2002 10:30:12 -0600
Thanks so much...
The details are what I wanted to know. I am now more
enlightened.
Damon.
> > I'm working in a skin within CMF 1.2 and Zope 2.5.0...
> >=20
> > I'm trying to clarify how to call a DTML Method with
> > parameters from a python script. The docs I've read
> > say to call it something like this:
> >=20
> > result_string =3D context.myDTMLMethod( None, _,=20
> optionalkey1=3D'yada' )
> The doc's say something like
> "__call__(client=3DNone,REQUEST=3D{},Response=3DNone,**kw)".
>=20
> Probably, you should use:
>=20
> context.myDTMLMethod(context,context.REQUEST,optionalkey1=3D...)
>=20
> Please read "Calling DTML objects" in
>=20
> <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
>=20
> for details.
>=20
>=20
> Dieter
>=20