[Zope] Defining a Variable
Dieter Maurer
dieter at handshake.de
Thu Jan 3 13:26:42 EST 2008
Victor Subervi wrote at 2008-1-2 14:44 -0400:
> ...
><html>
><body>
><table>
> <tr>
> <td tal:define="num python:here.scripts.getQuote">
As Andreas already has pointed out, you probably need "getQuote()"
rather than "getQuote" (as the name suggests, it is a method not a
value).
> <span metal:use-macro="here/en-us/quotes/?num/macros/quote" /><br />
"?var" in a path expression means: replace "?var" by the value of "var".
Therefore, if "num" contains the right value, the above should work.
--
Dieter
More information about the Zope
mailing list