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
dbc8cae1
Commit
dbc8cae1
authored
Dec 02, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More display fiddling, and remove misleading Transaction docstring.
parent
0a6ea739
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
src/ZODB/Transaction.py
src/ZODB/Transaction.py
+10
-12
No files found.
src/ZODB/Transaction.py
View file @
dbc8cae1
...
...
@@ -13,8 +13,8 @@
##############################################################################
"""Transaction management
$Id: Transaction.py,v 1.4
1 2002/12/02 22:16:58 jeremy Exp $"""
__version__
=
'$Revision: 1.41 $'
[
11
:
-
2
]
$Id: Transaction.py,v 1.4
2 2002/12/02 22:21:16 jeremy Exp $
"""
import
time
,
sys
,
struct
,
POSException
from
struct
import
pack
...
...
@@ -48,12 +48,11 @@ def jar_cmp(j1, j2):
return
cmp
(
k1
,
k2
)
class
Transaction
:
'Simple transaction objects for single-threaded applications.'
user
=
''
description
=
''
_connections
=
None
_extension
=
None
_sub
=
None
# This is a subtrasaction flag
user
=
''
description
=
''
_connections
=
None
_extension
=
None
_sub
=
None
# This is a subtrasaction flag
# The _non_st_objects variable is either None or a list
# of jars that do not support subtransactions. This is used to
...
...
@@ -163,10 +162,10 @@ class Transaction:
self
.
_init
()
def
begin
(
self
,
info
=
None
,
subtransaction
=
None
):
'''
Begin a new transaction.
"""
Begin a new transaction.
This aborts any transaction in progres.
'''
"""
if
self
.
_objects
:
self
.
abort
(
subtransaction
,
0
)
if
info
:
...
...
@@ -175,8 +174,7 @@ class Transaction:
self
.
description
=
strip
(
join
(
info
[
1
:],
'
\
t
'
))
def
commit
(
self
,
subtransaction
=
None
):
'Finalize the transaction'
""
Finalize
the
transaction
.
"""
objects = self._objects
subjars = []
...
...
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