[Zope-dev] get permission

Dieter Maurer dieter@handshake.de
Wed, 29 Aug 2001 21:17:22 +0200 (CEST)


Johan Beauce writes:
 > I use "manage_permission" for init permission of my directory.
 > Afterthat, I need to show the permissions for this directory!
 > Example :
 > 
 > myFolder.manage_permission('View',listOfRoles,1) 
 > 
 > Now, I need to get permissons from myFolder !
 > What is the function which give me the permissions from myFolder ;
 > a function like myFolder.getPermissions('View',ListOfRoles) ;
 > that give me the list of Roles cheked from the permission View.
 > 
 > Can you help me ?
My standard reply:

  You see it happening in Zope's Management Interface (ZMI).

  Zope is Open Source. You can look at the ZMI's source
  to find out how it is doing what you want....


Dieter