Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
c7523853
Commit
c7523853
authored
Aug 31, 2009
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted an incomplete fix.
parent
7d4519de
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
25 deletions
+2
-25
NEWS.txt
NEWS.txt
+0
-3
src/ZODB/serialize.py
src/ZODB/serialize.py
+2
-2
src/ZODB/tests/testConnection.py
src/ZODB/tests/testConnection.py
+0
-20
No files found.
NEWS.txt
View file @
c7523853
...
...
@@ -19,9 +19,6 @@ Bugs Fixed:
- Calling __setstate__ on a persistent object could under certain
uncommon cause the process to crash.
- Objects defining _p_deactivate methods that didn't call base methods
weren't loaded properly. https://bugs.launchpad.net/zodb/+bug/185066
Whats new in ZODB 3.8.2
=======================
...
...
src/ZODB/serialize.py
View file @
c7523853
...
...
@@ -506,9 +506,9 @@ class ObjectReader:
obj
.
_p_oid
=
oid
obj
.
_p_jar
=
self
.
_conn
# When an object is created, it is put in the UPTODATE
# state. We must explicitly
invalid
ate it to turn it into
# state. We must explicitly
deactiv
ate it to turn it into
# a ghost.
obj
.
_p_
invalidate
()
obj
.
_p_
changed
=
None
self
.
_cache
[
oid
]
=
obj
return
obj
...
...
src/ZODB/tests/testConnection.py
View file @
c7523853
...
...
@@ -523,26 +523,6 @@ def test_invalidateCache():
>>> db.close()
"""
class
class_that_ignores_deactivate
(
Persistent
):
def
_p_deactivate
(
self
):
pass
def
loading_objects_that_ignore_deactivate_bug_185066
():
"""See https://bugs.launchpad.net/bugs/185066
>>> import ZODB.tests.util
>>> db = ZODB.tests.util.DB()
>>> conn = db.open()
>>> conn.root().c = class_that_ignores_deactivate()
>>> conn.root().c.x = 1
>>> transaction.commit()
>>> conn2 = db.open()
>>> conn2.root().c.x
1
"""
# ---- stubs
class
StubObject
(
Persistent
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment