[Zope] Looking for different style

Dieter Maurer dieter@handshake.de
Tue, 15 Aug 2000 10:21:48 +0200 (CEST)


cuiod-tec Jens Gelhaar writes:
 > I need a better way to render a DTMLDocument and store the result in
 > variable than
 > <dtml-let variable="_['documentname']">
 > but I do not like the style, it looks clumsy. Is there an another way? I
 > would think something like documentname(...), but the acquisition does not
 > work.
Usually, you simply use

	<dtml-let variable=documentname>

You need the "_[...]" only, if either:

  *  "..." is not a valid Python name

  *  "..." is a Python expression


Dieter