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
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
Nicolas Wavrant
ZODB
Commits
0a6ea739
Commit
0a6ea739
authored
Dec 02, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change quotes.
parent
4b487fad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
src/ZODB/Transaction.py
src/ZODB/Transaction.py
+4
-5
No files found.
src/ZODB/Transaction.py
View file @
0a6ea739
...
...
@@ -13,8 +13,8 @@
##############################################################################
"""Transaction management
$Id: Transaction.py,v 1.4
0 2002/11/18 23:17:40
jeremy Exp $"""
__version__
=
'$Revision: 1.4
0
$'
[
11
:
-
2
]
$Id: Transaction.py,v 1.4
1 2002/12/02 22:16:58
jeremy Exp $"""
__version__
=
'$Revision: 1.4
1
$'
[
11
:
-
2
]
import
time
,
sys
,
struct
,
POSException
from
struct
import
pack
...
...
@@ -96,12 +96,11 @@ class Transaction:
if
self
.
_objects
:
self
.
abort
(
freeme
=
0
)
def
abort
(
self
,
subtransaction
=
0
,
freeme
=
1
):
'''
Abort the transaction.
"""
Abort the transaction.
This is called from the application. This means that we haven
\
'
t
entered two-phase commit yet, so no tpc_ messages are sent.
'''
"""
if
subtransaction
and
(
self
.
_non_st_objects
is
not
None
):
raise
POSException
.
TransactionError
,
(
"""Attempted to abort a sub-transaction, but a participating
...
...
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