Brought ZopeSecurityPolicy in line with cAccessControl. aq_base and aq_acquire
are not normally attributes of any object but acquisition wrappers, except in one important case: if container is a module and that module happens to import aq_base or aq_acquire from Acquisition, ZopeSecurityPolicy.validate() does unintended things. This made ModuleSecurityInfo declarations fail when using the Python policy. Now we no longer look at aq_base attributes, but rather the acquisition API, which is what cAccessControl does.
Showing
Please register or sign in to comment