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

nobody@nowhere.com nobody@nowhere.com
Mon, 16 Sep 2002 06:27:56 -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 ()