Skip to content
Open
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
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changes
1.6 (unreleased)
----------------

- ZODBReference is now callable to fix an unpickling error.
(`#20 <https://github.com/zopefoundation/zodbupdate/issues/20>`__)

- Test with history-free and history-preserving RelStorage. Note that
history-preserving RelStorage requires RelStorage 3.3 or above, and
Python 2.7 or Python 3.6 and above.
Expand Down
5 changes: 5 additions & 0 deletions src/zodbupdate/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ class ZODBReference(object):
def __init__(self, ref):
self.ref = ref

def __call__(self):
""" We need an empty __call__
"""
pass


class ObjectRenamer(object):
"""This load and save a ZODB record, modifying all references to
Expand Down