[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Appendix B: API Reference

webmaster@zope.org webmaster@zope.org
Thu, 03 Oct 2002 09:26:12 -0400


A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/AppendixB.stx#2-14

---------------

    This interface needs to be supported by objects that
    are returned by user validation and used for access control.

      % Anonymous User - July 12, 2002 3:32 pm:
       i don't seem to be able to access these methods from DTML...
       example?

      % Anonymous User - Sep. 16, 2002 6:27 am:
       for eg:
       <dtml-var "AUTHENTICATED_USER.getId()">returns zope user id
       <dtml-var "AUTHENTICATED_USER.getUserName()">return user name
       <dtml-var "AUTHENTICATED_USER.has_role('Manager')"> returned 1
       <dtml-var "AUTHENTICATED_USER.getRoles()"> returned 'Manager','Authenticated'
       <dtml-var "AUTHENTICATED_USER.getRolesInContext('folder_name')"> 'Manager','Authenticated'
       <dtml-var "AUTHENTICATED_USER.getDomains()"> returned empty ()

      % Anonymous User - Oct. 3, 2002 9:26 am:
       But the class is named AuthenticatedUser.  Why is it referenced with a different
       spelling (i.e. AUTHENTICATED_USER)?