Hi;
I have this in a page template:

<html>
<body>
<table>
 <tr>
  <td tal:define="num python:here.scripts.getQuote">
   <span metal:use-macro="here/en-us/quotes/?num/macros/quote" /><br />
   <div align="center">
    <span class="text">
     <a href="quotes.pt" target="_top"><b>The quotes</b></a>
    </span>
   </div>
  </td>
 </tr>
</table>
</body>
<html>

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:

  <td tal:define="num python:str(11)">
to make sure that num was properly assigned. What am I missing? Also, if I
have a dir called "scripts" in which "getQuote" exists, and "scirpts" is in
the path, shouldn't that notation work okay?
TIA,
Victor
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to