On 14.Dec 2004 - 16:53:52, Cliff Fogle wrote:
</select> <select name="querytype"> <span tal:define="ids root/Database/querytype/objectIds" tal:repeat="id ids" tal:omit-tag=""> <option tal:attributes="value id" tal:content="id">Item from sql method</option> </span> </select>
1. You don't have to define the "ids" variable, you could use root/Database/querytype/objectIds in repeat. 2. If you need the actual objects rather than just the id's use objectValues. so you should do something like: <span tal:repeat="obj root/Database/querytype/objectValues" tal:omit-tag=""> <option tal:attributes="value obj/id" tal:content="obj/title"></option> </span>
I'm going to go get a good book on Zope and read it tonight. But if that doesn't help can anyone here help me out? Thanks
The Zope-Book is very good for introduction. Andreas -- Just to have it is enough.