[Zope3-Users] Read out permissions

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Jan 4 08:19:10 EST 2005


On Monday 03 January 2005 10:22, Florian Lindner wrote:
> how can I use python code to read out the permission from a IInterface
> derived object?

I really do not understand what you are asking? I think what you want is the 
Checker that was created by providing a particular interface and permission.

The zope.security.checker module has some nice API methods for this:

selectChecker(iobject)
getCheckerForInstancesOf(class_)

I am not sure whether there are higher level APIs, but this is the one I found 
immediately. You can also look at the API doctool code, since it provides 
such information as well.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training


More information about the Zope3-users mailing list