[Zope] ZDiscussions Problem

Martin Holz holz@fiz-chemie.de
25 Nov 1999 17:30:44 +0100


ZDiscussion replyForm and postForm methods use the following code
to get the authors name: 

  <dtml-if "AUTHENTICATED_USER == 'Anonymous'">
     <input type=hidden name="author" value="<dtml-var "AUTHENTICATED_USER.getName()">
     <td><dtml-var "AUTHENTICATED_USER.getName()"></td>
  <dtml-else>
     <td><input name="author" size=40></td>
  </dtml-if>

Shouldn´t the first line look like  
<dtml-if "AUTHENTICATED_USER != 'Anonymous'">?
                            ^^^^
Asking only  anonymous user for their name? Zope knows the
names of the other users.


Second question: Has AUTHENTICATED_USER a method getName() ?
It raises an attribute error. Replacing getName with getUserName
works fine.

How do I learn about attributes anyway? 
<dtml-var "AUTHENTICATED_USER.__dict__"> doesn´t work :-(.

	Martin Holz