[Zope] Defining a dictionary in ZPT?

michael nt milne michael.milne at gmail.com
Thu Nov 1 08:48:04 EDT 2007


I've got this piece of code which is returning a keyerror on 'results' as I
haven't set up a dictionary for the variables. I'm not sure what the syntax
is for this within the ZPT. I've read about the 'options' dictionary. Can I
use that?


<span tal:define="query here/testquery">
<li tal content="results python: query(id='IT')">
<span tal:replace="results/firstname">First Name</span>&nbsp;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20071101/099289bf/attachment.htm

More information about the Zope mailing list