[Zope] A temporary python object defined in a dtml-let tag ???

Shane Hathaway shane@digicool.com
Thu, 05 Oct 2000 08:07:54 -0400


Frederic Quin wrote:
> I wonder if it's possible to create temporary a python object in a
> dtml-let tag. If someone knows more about how to do this, please, help
> me...

<dtml-let myvar="['somevalue']">
  The first element of myvar is <dtml-var expr="myvar[0]">
</dtml-let>

In both the dtml-let and the dtml-var tags, the stuff between quotes is
Python.

Shane