zope.securitypolicy
This package provides an useful security policy for Zope3. It’s the default security policy used in “zope3 the application” and many other zope-based projects.
Changes
6.1 (2026-11-23)
Move package metadata from setup.py to pyproject.toml.
Add support for Python 3.14, 3.15.
Drop support for Python 3.10, 3.9.
6.0 (2025-09-12)
Replace pkg_resources namespace with PEP 420 native namespace.
5.1 (2025-02-14)
Add support for Python 3.12, 3.13.
Drop support for Python 3.7, 3.8.
5.0 (2023-02-24)
Add support for Python 3.9, 3.10, 3.11.
Drop support for Python 2.7, 3.5, 3.6.
4.3.2 (2021-03-19)
Add support for Python 3.8.
Drop support for Python 3.4.
Fix some test imports to use the proper imports from zope.interface instead of zope.component.
4.3.1 (2018-10-11)
Use current location for IRegistered and IUnregistered interface.
4.3.0 (2018-08-27)
Add support for Python 3.7.
Drop support for Python 3.3.
Drop support for python setup.py test.
Make SecurityMap and AnnotationGrantInfo have proper truth behaviour on Python 3; previously they were always true.
Make AnnotationGrantInfo consistently return lists instead of dict views on Python 3.
Make AnnotationSecurityMap (and objects derived from it, such as AnnotationPrincipalPermissionManager and the role managers) more efficient when adding or removing cells before they have been persisted. They now avoid some unnecessary object copying.
4.2.0 (2017-08-24)
Add <zope:deny> directive, which is a mirror of the <zope:grant> directive.
Add support for Python 3.6.
4.1.0 (2016-11-05)
Add support for Python 3.5.
Drop support for Python 2.6.
Add support to grant multiple permissions with one ZCML statement. Example:
<grant role="my-role" permissions="zope.foo zope.bar" />
4.0.0 (2014-12-24)
Add support for PyPy. (PyPy3 is pending release of a fix for: https://bitbucket.org/pypy/pypy/issue/1946)
Add support for Python 3.4.
Add support for testing on Travis.
4.0.0a1 (2013-02-22)
Add support for Python 3.3.
Replace deprecated zope.interface.classProvides usage with equivalent zope.interface.provider decorator.
Replace deprecated zope.interface.implements usage with equivalent zope.interface.implementer decorator.
Drop support for Python 2.4 and 2.5.
3.7.0 (2010-09-25)
LP #131115: Clean up inconsistency in getSetting interface definitions and actual usage for the various security maps.
LP #564525: fix permission moved from zope.app.dublincore namespace to zope.dublincore.
Remove unused imports and pep8 cleanup.
Use doctest module instead of the deprecated zope.testing.doctest.
AnnotationGrantInfo implements IGrantInfo.
Add test extra to declare test dependency on zope.component [test].
Add an extra named dublincore to express optional dependency on zope.dublincore >= 3.7.
Add tests for ZCML files making sure they include everything they need.
3.6.1 (2009-07-24)
Make tests work when the default and Zope vocabulary registry compete in the cleanup.
3.6.0 (2009-03-14)
Change zope.app.security dependency to the new zope.authentication package, dropping a big number of unused dependencies.
Get rid of zope.app.testing and other testing dependencices.
Add ZODB3 to install dependencies, because we use Persistent class. We didn’t fail before, because it was installed implicitly.
3.5.1 (2009-03-10)
Don’t depend on the hook extra of zope.component, as we don’t need it explicitly.
Import security settings (Allow, Deny, Unset) in the interfaces module from the zope.securitypolicy.settings, added in previous release instead of old zope.app.security.settings. The zope.app.security will be adapted to import them from zope.securitypolicy.interfaces.
Use _z_instances instead of __instances__ for storing instances for zope.securitypolicy.settings.PermissionSetting singleton implementation, because __*__ name pattern is reserved for special names in python.
Add security protections for the PermissionSetting.
Improve documentation formatting, add it to the package’s long description.
Remove unneeded dependencies.
Remove old zpkg-related files and zcml slugs.
3.5.0 (2009-01-31)
Include settings that were previously imported from zope.app.security.
3.4.2 (2009-01-28)
Change mailing list address to zope-dev at zope.org. Fix package homepage to the pypi page.
Fix test in buildout which still depended on zope.app.securitypolicy by mistake.
Remove explicit dependency on zope.app.form from setup.py; nothing in the code directly depends on this.
3.4.1 (2008-06-02)
Fix reference to deprecated security policy from ZCML.
3.4.0 (2007-09-25)
Initial documented release
Metadata
Release files for zope.securitypolicy 6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zope_securitypolicy-6.1.tar.gz | 33.1 kB | With provenance | Details for zope_securitypolicy-6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zope_securitypolicy-6.1-py3-none-any.whl | Python 3 | none | any | Details for zope_securitypolicy-6.1-py3-none-any.whl |
Total release size: 83.7 kB
Release files / zope_securitypolicy-6.1.tar.gz
| Download URL | zope_securitypolicy-6.1.tar.gz |
|---|---|
| Size | 33.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7086c8801af102eacd3afea1bb58875b9436675bca1e104f6e71e11eb48232b
|
|
BLAKE2b-256 checksum How to use checksums |
132be0bdbaa76bfd1cb30b2eab0a43105e2baa97847ade569d23cbf22c8d7ee3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / zope_securitypolicy-6.1-py3-none-any.whl
| Download URL | zope_securitypolicy-6.1-py3-none-any.whl |
|---|---|
| Size | 50.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10e569b52c607265e262199674ee4940c4542886249887de2e5579a0ebaa8b4f
|
|
BLAKE2b-256 checksum How to use checksums |
951ede0a0ffea82b273eff9c1fd7cca237b6910151a3a8623af82d7a21fbe257
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for zope.securitypolicy 6.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for zope_securitypolicy-6.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.