[Zope] nested queries and zpt

2007-04-12 Thread SpiderX

I have an internal application that I am developing, about server
configurations.

I have a list of customers who own servers.
I have a list of software which is linked to the list of servers.
My server list looks like this (simplified):

url: ServerList?CustomerID=123456

tal:x repeat=server here/serverlist-sql
tal:x replace=server/nameservername/tal:x
tal:x replace=server/IDserver ID number/tal:x
tal:x replace=structure here/ServerSoftwareListlist 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?
--
Thanks,
Derek Wilson
___
Zope maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] nested queries and zpt

2007-04-12 Thread Maciej Wisniowski

 url: ServerList?CustomerID=123456

 tal:x repeat=server here/serverlist-sql
 tal:x replace=server/nameservername/tal:x
 tal:x replace=server/IDserver ID number/tal:x
 tal:x replace=structure here/ServerSoftwareListlist 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
___
Zope maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )