[Zope] newbie question: nested loops
David J. C. Beach
beach@verinet.com
Thu, 22 Jul 1999 14:11:30 -0600
I made a mistake here (although correcting it doesn't fix my original
problem). My DTML should have read:
------------------------list_docs------------------------------
<table>
<tr>
<th>Id</th>
<th>Name</th>
<th>Author</th>
</tr>
<!--#in users-->
<!--#with "_.namespace(user=_[_['sequence-item']])"-->
<!--#in "_['user'].publish"-->
<!-- I think this next line is a serious case of wishful thinking -->
<!--#with "_.namespace(doc=getattr(_['user'], _['sequence-item']))"-->
<tr>
<td><!--#var "_['doc'].id"--></td> <-- show document id -->
<td><!--#var "_['doc'].title"--></td> <-- show document title -->
<td><!--#var "_['user'].title"--></td> <-- show user name == author -->
</tr>
<!--#/with-->
<!--#/in-->
<!--#/with-->
<!--#/in-->
</table>
------------------------------------------------------------------
Sorry for the extra traffic.
Dave
--
David J. C. Beach
<beach@verinet.com>