Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to current persistent API #14

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
5.1 (unreleased)
================

- Nothing changed yet.
- Update to ``persistent`` 6.0 API usage


5.0 (2023-06-29)
Expand Down
4 changes: 2 additions & 2 deletions src/zope/principalannotation/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
__docformat__ = 'restructuredtext'
from BTrees.OOBTree import OOBTree
from persistent import Persistent
from persistent.dict import PersistentDict
from persistent.mapping import PersistentMapping
from zope.annotation.interfaces import IAnnotations
from zope.component import queryNextUtility
from zope.location import Location
Expand Down Expand Up @@ -81,7 +81,7 @@ class Annotations(Persistent, Location):

def __init__(self, principalId, store=None):
self.principalId = principalId
self.data = PersistentDict() # We don't really expect that many
self.data = PersistentMapping() # We don't really expect that many

# _v_store is used to remember a mapping object that we should
# be saved in if we ever change
Expand Down