[Zope] nested queries and zpt
Maciej Wisniowski
maciej.wisniowski at coig.katowice.pl
Fri Apr 13 01:43:33 EDT 2007
> url: "ServerList?CustomerID=123456"
>
> <tal:x repeat="server here/serverlist-sql">
> <tal:x replace="server/name">servername</tal:x>
> <tal:x replace="server/ID">server ID number</tal:x>
> <tal:x replace="structure here/ServerSoftwareList">list of software
> goes here</tal:x>
> ...</tal:x>
> The problem is that the ServerSoftwareList needs the "server/ID"
> passed to it for the query, which will return the software on file for
> that server... any ideas?
<tal:x replace="structure python:
here.ServerSoftwareList(id=server['id'])">list of software goes here</tal:x>
--
Maciej Wisniowski
More information about the Zope
mailing list