Metadata-Version: 2.4
Name: zope.locking
Version: 4.1
Summary: Advisory exclusive locks, shared locks, and freezes (locked to no-one).
Author-email: Zope Project <zope3-dev@zope.dev>
Maintainer-email: Plone Foundation and contributors <zope-dev@zope.dev>
License-Expression: ZPL-2.1
Project-URL: Source, https://github.com/zopefoundation/zope.locking
Project-URL: Issues, https://github.com/zopefoundation/zope.locking/issues
Project-URL: Changelog, https://raw.githubusercontent.com/zopefoundation/zope.locking/master/CHANGES.rst
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Framework :: Zope :: 3
Requires-Python: >=3.11
Description-Content-Type: text/x-rst
License-File: LICENSE.rst
Requires-Dist: BTrees
Requires-Dist: persistent
Requires-Dist: pytz
Requires-Dist: zope.component
Requires-Dist: zope.event
Requires-Dist: zope.generations
Requires-Dist: zope.interface>=3.8
Requires-Dist: zope.keyreference
Requires-Dist: zope.location
Requires-Dist: zope.schema
Requires-Dist: zope.security
Provides-Extra: test
Requires-Dist: transaction; extra == "test"
Requires-Dist: zope.app.appsetup; extra == "test"
Requires-Dist: zope.testing; extra == "test"
Requires-Dist: zope.testrunner>=6.4; extra == "test"
Dynamic: license-file

=======================================================================
Advisory exclusive locks, shared locks, and freezes (locked to no-one).
=======================================================================

The zope.locking package provides three main features:

- advisory exclusive locks for individual objects;

- advisory shared locks for individual objects; and

- frozen objects (locked to no one).

Locks and freezes by themselves are advisory tokens and inherently
meaningless.  They must be given meaning by other software, such as a security
policy.

This package approaches these features primarily from the perspective of a
system API, largely free of policy; and then provides a set of adapters for
more common interaction with users, with some access policy.  We will first
look at the system API, and then explain the policy and suggested use of the
provided adapters.

=======
Changes
=======

4.1 (2026-11-16)
================

- 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.


4.0 (2025-09-12)
================

- Replace ``pkg_resources`` namespace with PEP 420 native namespace.


3.0 (2025-09-04)
================

- Add support for Python 3.9, 3.10, 3.11, 3.12, 3.13.

- Drop support for Python 2.7, 3.5, 3.6, 3.7, 3.8.


2.1.0 (2020-04-15)
==================

- Fix DeprecationWarnings for ObjectEvent.

- Add support for Python 3.7 and 3.8.

- Drop support for Python 3.3 and 3.4.


2.0.0 (2018-01-23)
==================

- Python 3 compatibility.

- Note: The browser views and related code where removed. You need to provide
  those in application-level code now.

- Package the zcml files.

- Updated dependencies.

- Revived from svn.zope.org


1.2.2 (2011-01-31)
==================

- Consolidate duplicate evolution code.

- Split generations config into its own zcml file.


1.2.1 (2010-01-20)
==================

- Bug fix: the generation added in 1.2 did not properly clean up
  expired tokens, and could leave the token utility in an inconsistent
  state.


1.2 (2009-11-23)
================

- Bug fix: tokens were stored in a manner that prevented them from
  being cleaned up properly in the utility's _principal_ids mapping.
  Make zope.locking.tokens.Token orderable to fix this, as tokens
  are stored as keys in BTrees.

- Add a zope.app.generations Schema Manager to clean up any lingering
  tokens due to this bug.  Token utilities not accessible through the
  component registry can be cleaned up manually with
  zope.locking.generations.fix_token_utility.

- TokenUtility's register method will now add the token to the utility's
  database connection if the token provides IPersistent.

- Clean up the tests and docs and move some common code to testing.py.

- Fix some missing imports.


1.1
===

(series for Zope 3.4; eggs)

1.1b
====

- converted to use eggs


1.0
===

(series for Zope 3.3; no dependencies on Zope eggs)

1.0b
====

Initial non-dev release
