[Zope] Defining a Variable

Andreas Jung lists at zopyx.com
Wed Jan 2 13:55:02 EST 2008



--On 2. Januar 2008 14:44:24 -0400 Victor Subervi <victorsubervi at gmail.com> 
wrote:


>   <td tal:define="num python:here.scripts.getQuote">

As in nearly all other programming languages methods are called
with parentheses - or?


>    <span metal:use-macro="here/en-us/quotes/?num/macros/quote" /><br />

>
> Now, I thought that was the correct way to call the variable "num" (that
> is, with the question mark: "?num"). Apparently, I'm mistaken. I've even
> tried defining it this way:

Not sure if using the '?' will working within a TALES expression. It will
at least work as the last item with an expression. However it will fail in 
general if 'num' is an integer.

-aj

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20080102/e5f6c942/attachment.bin


More information about the Zope mailing list