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
2f9e78bd
Commit
2f9e78bd
authored
Jul 21, 1999
by
Ken Manheimer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copied over the magic for _setBasesHoldOnToYourButts().
parent
6904ca0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
src/ZODB/Connection.py
src/ZODB/Connection.py
+13
-2
No files found.
src/ZODB/Connection.py
View file @
2f9e78bd
...
...
@@ -84,8 +84,8 @@
##############################################################################
"""Database connection support
$Id: Connection.py,v 1.
19 1999/07/20 19:08:50 ji
m Exp $"""
__version__
=
'$Revision: 1.
19
$'
[
11
:
-
2
]
$Id: Connection.py,v 1.
20 1999/07/21 21:11:07 kl
m Exp $"""
__version__
=
'$Revision: 1.
20
$'
[
11
:
-
2
]
from
cPickleCache
import
PickleCache
from
POSException
import
ConflictError
,
ExportError
...
...
@@ -469,6 +469,17 @@ class Connection(ExportImport.ExportImport):
get_transaction
().
abort
()
self
.
_cache
.
invalidate
(
self
.
_invalidated
)
######################################################################
# Just plain weird. Don't try this at home kids.
def
exchange
(
self
,
old
,
new
):
oid
=
old
.
_p_oid
new
.
_p_oid
=
oid
new
.
_p_jar
=
self
new
.
_p_changed
=
1
get_transaction
().
register
(
new
)
self
.
cache
[
oid
]
=
new
class
tConnection
(
Connection
):
def
close
(
self
):
...
...
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