[Zope] rendered method in dtml document

Dylan Reinhardt zope at dylanreinhardt.com
Fri Sep 26 16:16:23 EDT 2003


On Fri, 2003-09-26 at 12:37, Thomas M G Bennett wrote:
> The sample 
> document, a_test, has the following contents (which doesn't work).
> 
> " a link to <dtml-call  dbtitle(74)> which is a proxy or local url"

Try this:

<dtml-var "dbtitle(74)">


Two things to note:

1. When you use a Python expression, put it in quotes.
2. Both dtml-call and dtml-var will *evaluate* the expression you pass
   them, but only dtml-var will return a value.

HTH,

Dylan





More information about the Zope mailing list