[Zope-dev] Weird IndexableObjectWrapper + TopicIndex + aq_acquired interactions.

Lennart Regebro regebro at gmail.com
Wed Sep 21 18:41:16 EDT 2005


> When an acquisition wrapper is formed, there always must some context
> (which is put into "aq_parent").

Well, as I can figure out this is the code that does the wrapping:

  /* Crap, we've got to construct a wrapper so we can use Wrapper_findattr */
  UNLESS (self=newWrapper(self, Py_None, (PyTypeObject*)&Wrappertype))
    return NULL;

And that has None as the container/context.


http://svn.zope.org/Zope/tags/Zope-2-8-1/lib/python/Acquisition/_Acquisition.c?rev=37855&view=markup


More information about the Zope-Dev mailing list