Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
8d4a5f14
Commit
8d4a5f14
authored
Jun 11, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added logic to keep a reference to the root object to keep it from being
dropped from the cache.
parent
c9f496ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/ZODB/Connection.py
src/ZODB/Connection.py
+4
-3
No files found.
src/ZODB/Connection.py
View file @
8d4a5f14
...
...
@@ -84,8 +84,8 @@
##############################################################################
"""Database connection support
$Id: Connection.py,v 1.
7 1999/05/24 21:46:21
jim Exp $"""
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
$Id: Connection.py,v 1.
8 1999/06/11 18:24:02
jim Exp $"""
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
from
cPickleCache
import
PickleCache
from
POSException
import
ConflictError
,
ExportError
...
...
@@ -160,6 +160,7 @@ class Connection(ExportImport.ExportImport):
object
.
_p_serial
=
serial
cache
[
oid
]
=
object
if
oid
==
'
\
0
\
0
\
0
\
0
\
0
\
0
\
0
\
0
'
:
self
.
_root_
=
object
# keep a ref
return
object
def
_persistent_load
(
self
,
oid
,
...
...
@@ -290,7 +291,7 @@ class Connection(ExportImport.ExportImport):
klass
=
object
.
__class__
if
klass
is
ExtensionKlass
:
# Ye Ha!
# Ye
e
Ha!
dict
=
{}
dict
.
update
(
object
.
__dict__
)
del
dict
[
'_p_jar'
]
...
...
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