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
Kirill Smelkov
ZODB
Commits
d0ff628e
Commit
d0ff628e
authored
Jan 02, 2004
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reformat sync() and exchange(). Change exchange() comment.
parent
50c51b55
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
src/ZODB/Connection.py
src/ZODB/Connection.py
+10
-11
No files found.
src/ZODB/Connection.py
View file @
d0ff628e
...
...
@@ -13,7 +13,7 @@
##############################################################################
"""Database connection support
$Id: Connection.py,v 1.10
7 2003/12/31 16:27:29
jeremy Exp $"""
$Id: Connection.py,v 1.10
8 2004/01/02 19:57:12
jeremy Exp $"""
import
logging
import
sys
...
...
@@ -672,8 +672,9 @@ class Connection(ExportImport, object):
def
sync
(
self
):
self
.
getTransaction
().
abort
()
sync
=
getattr
(
self
.
_storage
,
'sync'
,
0
)
if
sync
!=
0
:
sync
()
sync
=
getattr
(
self
.
_storage
,
'sync'
,
0
)
if
sync
:
sync
()
self
.
_flush_invalidations
()
def
getDebugInfo
(
self
):
...
...
@@ -693,13 +694,11 @@ class Connection(ExportImport, object):
self
.
_store_count
=
0
return
res
######################################################################
# 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
# called by a ZClasses method that isn't executed by the test suite
oid
=
old
.
_p_oid
new
.
_p_oid
=
oid
new
.
_p_jar
=
self
new
.
_p_changed
=
1
self
.
getTransaction
().
register
(
new
)
self
.
_cache
[
oid
]
=
new
self
.
_cache
[
oid
]
=
new
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