[Zope] Re: Defining a dictionary in ZPT?

Josef Meile jmeile at hotmail.com
Mon Nov 5 03:12:55 EST 2007


> ok, thanks Duncan
> 
> <ul>
> <li tal:define="query nocall:here/testquery" tal:repeat="result 
> python:query(id='IT')">
> <span tal:replace="result/lastname">lastname goes here</span>
> 
> </li>
> </ul>
Good that you got it working. By the way, why do you need to define
"query"? Do you really need a reference to the testquery function? Won't
be enough by writing:

<li tal:repeat="result python:here.testquery(id='IT')">

Or are you using "query" somewhere else?

Best regards
Josef


More information about the Zope mailing list