[Zope] Python Classes and Zope.

Paul Winkler pw_lists at slinkp.com
Fri Dec 2 10:32:24 EST 2005


On Fri, Dec 02, 2005 at 04:12:01PM +0100, Jean-Marc Orliaguet wrote:
> does zope2 do an access control based on acquisition for public methods, 
> that would be a waste of resources since the answer is always "yes, 
> granted" ?

Well, the thing is, the declaration that makes the method public
*has no effect* unless your class participates in acquisition.

Oh, and the instance needs to be given an acquisition context, too.
e.g.  foo = foo.__of__.some_parent

-- 

Paul Winkler
http://www.slinkp.com


More information about the Zope mailing list