Personal tools
You are here: Home Zope & Plone tips Accessing a zope object stripped of the acquisition layer
Navigation
 
Document Actions
  • Send this page to somebody
  • Print this page
  • Add Bookmarklet

Accessing a zope object stripped of the acquisition layer

by tibi last modified 2007-04-09 14:29

To get an object completely stripped of its acquisition layers, the following snippet can be employed

import Acquisition
obj_no_aq = Acquisition.aq_base(obj)

No acquisition means no methods or properties inherited from the container or the container chain.

Although a bit old, the Zope Developer Guide, with its chapter on Acquisition do a fine job at explaining the intricacies of acquisition in Zope 2.
Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 License.
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: