[Zope] Defining a dictionary in ZPT?
Paul Winkler
pw_lists at slinkp.com
Thu Nov 1 14:37:00 EDT 2007
On Thu, Nov 01, 2007 at 12:48:04PM +0000, michael nt milne wrote:
> Hi
>
> 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.
(snip)
> <span tal:define="query here/testquery">
> <li tal content="results python: query(id='IT')">
> <span tal:replace="results/firstname">First Name</span>
> </li>
"<li tal content" doesn't make any sense.
I suspect you want that to be:
<li tal:define="results ...
--
Paul Winkler
More information about the Zope
mailing list