[Zope] AUTHENTICATED_USER problems

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Fri, 12 Oct 2001 14:26:47 +1000


>>> Myles Byrne wrote
> <dtml with="AUTHENTICATED_USER">  <------ this line is supposed to
> select which file they are going to edit based on their user name but it
> doesn't work.

AUTHENTICATED_USER is actually an object, not a string. What you
_probably_ want is something like 
<dtml-with "_[AUTHENTICATED_USER.getName()]"> 

You probably don't want to be doing this in DTML, anyway - you'll find
that while DTML is quick and easy to get into, it gets very ugly,
very quickly.

Anthony