[Zope] DTML indirection question again

Gabe Wachob gwachob@findlaw.com
Mon, 15 Mar 1999 15:20:20 -0800


OK, here's the situation.

I have a "login" page that I want to list the contents of different
directories depending on the value of the AUTHENTICATED_USER

Each user has a folder under the folder 'user'.

I would like to be able to do (simplified):

<!--#with expr="_.getitem('user'.AUTHENICATED_USER,0)"-->
<!--#in "objectValues()"-->
<!--#with sequence-item-->
<a target="_view" href="user/<!--#var id-->"><!--#var title--></a><br>
<!--#/with-->
<!--#/in-->
<!--#/with-->

However, I get a TypeError on the #with line (and even if I put in the
AUTHENTICATED_USER.id instead of just AUTHENTICATED_USER).

What am I doing wrong here? I've tried a lot of different combinations
of #with and _.getitem and such..

 THANKS

    -Gabe