[Zope] getting info on permissions

Samir Mishra SamirMishra@cbuae.gov.ae
Sun, 2 Feb 2003 10:57:14 +0400


I'm also looking for something similar. 

We have a pretty complex security requirement. What I need to be able to do
is programmatically, as a manager, starting from the root, traverse down all
of the nodes and list all users, roles, proxy roles, etc. by context.

We have a situation where we have two separate groups of users (A & B) with
a number of sub-groups in each. The sub-groups from A need to interact with
different sub-groups from B at different times. There's never any overlap.
Also, members in the A or B pool move between the sub-groups within A & B.
I.e., teams interacting with teams, where the individuals are assigned to
different teams at different times , and for security reasons one pair of
teams should not know what another team pair is doing. 

This is well beyond what I currently know in Zope, but perhaps I may learn
something I can use later.

Thanks very much.

Samir.

-----Original Message-----
From: Rocky Burt [mailto:rocky@atlas.nh.bricsnet.com]
Sent: Saturday, February 01, 2003 23:39
To: zope@zope.org
Subject: [Zope] getting info on permissions



I'm currently in need of some code (for debugging reasons) that will show
me what permissions are in affect for a give role in a given context.  It
needs to include acquired permissions as well.

I've looked around for some api calls to get me this info.  The closest
thing
I've found is context.permissionsOfRole(myRole).  Unfortunately that only
lists
permissions defined for that role on that context, not the acquired ones
as well.

Am I going to have to traverse the tree and figure out acquired permissions
myself? or is there an easier way?

- Rocky




-- 
__________________________________________________________________________

Rocky Burt
Development, Director

Bricsnet FM Americas            -    office: +1 (603) 559-2527
53 Green St                     -    mobile: +1 (603) 512-9832
Portsmouth                      -    fax:    +1 (603) 436-5760
NH  03801  USA                  -    email:  rocky.burt@bricsnet.com
__________________________________________________________________________

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )