Re: [Zope] Defining a dictionary in ZPT?

2007-11-01 Thread Paul Winkler
On Thu, Nov 01, 2007 at 12:48:04PM +, 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

Re: [Zope] Defining a dictionary in ZPT?

2007-11-01 Thread michael nt milne
yeah I have modified to this li tal:define = query here/testquery tal:repeat=result python:query(id='IT') span tal:replace=python:repeat['result'].firstnameFirst Name/spannbsp; /li but get this as a result. Thanks for the reply. Module Products.PTProfiler.ProfilerPatch, line 32, in