[Zope] frustrated by inability to introspect...

Dieter Maurer dieter@handshake.de
Sun, 27 Oct 2002 18:56:26 +0100


Skip Montanaro writes:
 > I have the following little snippet of pt code:
 > 
 >     <form action="edit_list">
 >         <select name="listname">
 >           <option tal:repeat="item container/enumerate_lists"
 >               tal:content="item">list</option>
 >         </select>
 >         <input type="submit" value="Edit">
 >     </form>
 > 
 > container/enumerate_lists is a ZSQL method that performs a simple query:
 > 
 >     select listname from mailinglists
 > 
 > All I want to do is display the listnames as form option values.  I can't
 > figure out what attributes "item" has.
You "item"s are "Record" objects. Its attributes are the rows of the
ZSQL query (in some way). I.e., you can use: 'tal:content="item/listname"'.


Dieter