[ZPT] call dtml method from zpt

Casey Duncan casey@zope.com
Mon, 08 Apr 2002 10:16:57 -0600


DTML callables take two arguments, the context and the request. So, this=20
would probably work:

<span tal:replace=3D"structure python:here.dtml_object(here, request)"></=
span>

Although you might just try:

<span tal:replace=3D"structure here/dtml_object"></span>

and see if the interpreter can figure out the call signature for you.=20
BTW: you might be better off using a metal macro instead of calling dtml=20
from zpt, which seems a bit messy to me.

-Casey

Mirna Callejas wrote:
> Is a basic question: How do I call a dtml method from zpt?
> I=B4ve into method only <dtml-var "get_banner()">
>=20
> ~Mirna
>=20
>=20
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>=20
>=20
>=20
> _______________________________________________
> ZPT mailing list
> ZPT@zope.org
> http://lists.zope.org/mailman/listinfo/zpt
>=20
>=20