Acquisition

Latest version: v5.2

Safety actively analyzes 631274 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 8

2.13.7

-------------------

- Fixed bug: When an object did not implement ``__unicode__``, calling
``unicode(wrapped)`` was calling ``__str__`` with an unwrapped ``self``.

2.13.6

-------------------

- Add ``aq_explicit`` to ``IAcquisitionWrapper``.

- Fixed bug: ``unicode(wrapped)`` was not calling a ``__unicode__``
method on wrapped objects.

2.13.5

-------------------

- Fixed unit tests that failed on 64bit Python on Windows machines.

2.13.4

-------------------

- LP 623665: Fixed typo in Acquisition.h.

2.13.3

-------------------

- Use the doctest module from the standard library and no longer depend on
zope.testing.

2.13.2

-------------------

- Give both wrapper classes a ``__getnewargs__`` method, which causes the ZODB
optimization to fail and create persistent references using the ``_p_oid``
alone. This happens to be the persistent oid of the wrapped object. This lets
these objects to be persisted correctly, even though they are passed to the
ZODB in a wrapped state.

- Added failing tests for http://dev.plone.org/plone/ticket/10318. This shows
an edge-case where AQ wrappers can be pickled using the specific combination
of cPickle, pickle protocol one and a custom Pickler class with an
``inst_persistent_id`` hook. Unfortunately this is the exact combination used
by ZODB3.

Page 6 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.