Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Zope
Commits
8b6d6c77
Commit
8b6d6c77
authored
Apr 03, 2001
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added transactionalUndo.
parent
f7e8342e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
lib/python/BDBStorage/BDBFullStorage.py
lib/python/BDBStorage/BDBFullStorage.py
+13
-1
lib/python/BDBStorage/Full.py
lib/python/BDBStorage/Full.py
+13
-1
No files found.
lib/python/BDBStorage/BDBFullStorage.py
View file @
8b6d6c77
...
...
@@ -4,7 +4,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support
undo or versioning.
"""
# $Revision: 1.
5
$
# $Revision: 1.
6
$
__version__
=
'0.1'
import
struct
...
...
@@ -619,6 +619,18 @@ class Full(BerkeleyBase):
# Now recurse...
self
.
_decref
(
roid
,
lrevid
,
txn
)
def
transactionalUndo
(
self
,
tid
,
transaction
):
if
transaction
is
not
self
.
_transaction
:
raise
POSException
.
StorageTransactionError
(
self
,
transaction
)
oids
=
[]
self
.
_lock_acquire
()
try
:
return
oids
finally
:
self
.
_lock_release
()
def
undo
(
self
,
tid
):
# Attempt to undo transaction. NOTE: the current storage interface
# documentation says that this method takes a third argument, which is
...
...
lib/python/BDBStorage/Full.py
View file @
8b6d6c77
...
...
@@ -4,7 +4,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support
undo or versioning.
"""
# $Revision: 1.
5
$
# $Revision: 1.
6
$
__version__
=
'0.1'
import
struct
...
...
@@ -619,6 +619,18 @@ class Full(BerkeleyBase):
# Now recurse...
self
.
_decref
(
roid
,
lrevid
,
txn
)
def
transactionalUndo
(
self
,
tid
,
transaction
):
if
transaction
is
not
self
.
_transaction
:
raise
POSException
.
StorageTransactionError
(
self
,
transaction
)
oids
=
[]
self
.
_lock_acquire
()
try
:
return
oids
finally
:
self
.
_lock_release
()
def
undo
(
self
,
tid
):
# Attempt to undo transaction. NOTE: the current storage interface
# documentation says that this method takes a third argument, which is
...
...
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