[Zope] Can't access a method 'in this context'

Dieter Maurer dieter@handshake.de
Mon, 19 Aug 2002 00:14:13 +0200


Tim Hicks writes:
 > ...
 > Ok, I've been doing that. Line 200 in ZopeSecurityPolicy.py raises
 > Unauthorised because:
 > 
 > accessedbase is containerbase
 > 
 > which equates to:
 > 
 > getattr(accessed, 'aq_base', container) is aq_base(container)
This, e.g., happens, when "accessed" is not acquisition wrapped.

A standard problem is to include neither "Acquisition.Implicit"
nor "Acquisition.Explicit" as base class. Instances, then, will
not play well with Zope's security machinery.


Dieter