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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
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 @@
...
@@ -84,8 +84,8 @@
##############################################################################
##############################################################################
"""Database connection support
"""Database connection support
$Id: Connection.py,v 1.
19 1999/07/20 19:08:50 ji
m Exp $"""
$Id: Connection.py,v 1.
20 1999/07/21 21:11:07 kl
m Exp $"""
__version__
=
'$Revision: 1.
19
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
20
$'
[
11
:
-
2
]
from
cPickleCache
import
PickleCache
from
cPickleCache
import
PickleCache
from
POSException
import
ConflictError
,
ExportError
from
POSException
import
ConflictError
,
ExportError
...
@@ -469,6 +469,17 @@ class Connection(ExportImport.ExportImport):
...
@@ -469,6 +469,17 @@ class Connection(ExportImport.ExportImport):
get_transaction
().
abort
()
get_transaction
().
abort
()
self
.
_cache
.
invalidate
(
self
.
_invalidated
)
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
):
class
tConnection
(
Connection
):
def
close
(
self
):
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