Zope-component

Latest version: v4.4.1

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

Scan your dependencies

Page 3 of 6

3.12.0

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

- Add convenience function zope.component.hooks.site (a contextmanager),
so one can write ``with site(foo): ...``.

3.11.0

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

- Move code from ``zope.component.registry`` which implements a basic
nonperistent component registry to ``zope.interface.registry``. This code
was moved from ``zope.component`` into ``zope.interface`` to make porting
systems (such as Pyramid) that rely only on a basic component registry to
Python 3 possible without needing to port the entirety of the
``zope.component`` package. Backwards compatibility import shims have been
left behind in ``zope.component``, so this change will not break any
existing code.

- Move interfaces from ``zope.component.interfaces`` to
``zope.interface.interfaces``: ``ComponentLookupError``, ``Invalid``,
``IObjectEvent``, ``ObjectEvent``, ``IComponentLookup``, ``IRegistration``,
``IUtilityRegistration``, ``IAdapterRegistration``,
``ISubscriptionAdapterRegistration``, ``IHandlerRegistration``,
``IRegistrationEvent``, ``RegistrationEvent``, ``IRegistered``,
``Registered``, ``IUnregistered``, ``Unregistered``,
``IComponentRegistry``, and ``IComponents``. Backwards compatibility shims
left in place.

- Depend on ``zope.interface`` >= 3.8.0.

3.10.0

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

- Remove the ``docs`` extra and the ``sphinxdoc`` recipe.

- Create a ``security`` extra to move security-related dependencies out of the
``test`` extra.

- Use the new ``zope.testrunner`` package for tests.

- Add a basic test for the ``configure.zcml`` file provided.

3.9.5

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

- Fix test requirements specification.

3.9.4

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

- Prefer the standard library ``doctest`` to the one from ``zope.testing``.

3.9.3

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

- The ZCML directives provided by ``zope.component`` now register the
components in the registry returned by ``getSiteManager`` instead of the
global registry. This change allows the hooking of the ``getSiteManager``
method before the load of a ZCML file to register the components in a
custom registry.

Page 3 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.