[Zope] Quotes and DTML

Dennis Allison allison@sumeru.stanford.EDU
Fri, 9 May 2003 09:02:41 -0700 (PDT)


Take a look at "The Zope Book" available on-line at www.zope.org.

<dtml-var ...> renders either an object or and expression. You have
encountered the *short* forms.  The long forms are:

	<dtml-var name="propertyValues">
	<dtml-var expr="propertyValues()">

The expr form evaluates a python expression.

	-dra

On Fri, 9 May 2003, Wim Bekker wrote:

> What are quotes doing here:
> 
> 1: <dtml-var propertyValues>
> 2: <dtml-var propertyValues()>
> 3: <dtml-var "propertyValues">
> 4: <dtml-var "propertyValues()">
> 
> 1 and 4 gives the same result.
> 2 gives Error Type: KeyError; Error Value: propertyValues().
> 3 gives a >
> 
> Where can I find information about syntax etc?
>