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
nexedi
ZODB
Commits
41fc1acd
Commit
41fc1acd
authored
Apr 25, 2005
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close unterminated sentences.
parent
dd3304ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
src/transaction/interfaces.py
src/transaction/interfaces.py
+13
-13
No files found.
src/transaction/interfaces.py
View file @
41fc1acd
...
...
@@ -19,7 +19,7 @@ $Id$
import
zope.interface
class
ITransactionManager
(
zope
.
interface
.
Interface
):
"""An object that manages a sequence of transactions
"""An object that manages a sequence of transactions
.
Applications use transaction managers to establish transaction boundaries.
"""
...
...
@@ -35,11 +35,11 @@ class ITransactionManager(zope.interface.Interface):
"""
def
commit
():
"""Commit the current transaction
"""Commit the current transaction
.
"""
def
abort
():
"""Abort the current transaction
"""Abort the current transaction
.
"""
def
savepoint
(
optimistic
=
False
):
...
...
@@ -268,7 +268,7 @@ class IDataManager(zope.interface.Interface):
"""
def
tpc_vote
(
transaction
):
"""Verify that a data manager can commit the transaction
"""Verify that a data manager can commit the transaction
.
This is the last chance for a data manager to vote 'no'. A
data manager votes 'no' by raising an exception.
...
...
@@ -295,7 +295,7 @@ class IDataManager(zope.interface.Interface):
"""
def
sortKey
():
"""Return a key to use for ordering registered DataManagers
"""Return a key to use for ordering registered DataManagers
.
ZODB uses a global sort order to prevent deadlock when it commits
transactions involving multiple resource managers. The resource
...
...
@@ -313,11 +313,11 @@ class IDataManager(zope.interface.Interface):
class
ISavepointDataManager
(
IDataManager
):
def
savepoint
():
"""Return a data-manager savepoint (IDataManagerSavepoint)
"""Return a data-manager savepoint (IDataManagerSavepoint)
.
"""
class
IDataManagerSavepoint
(
zope
.
interface
.
Interface
):
"""Savepoint for data-manager changes for use in transaction savepoints
"""Savepoint for data-manager changes for use in transaction savepoints
.
Datamanager savepoints are used by, and only by, transaction savepoints.
...
...
@@ -330,15 +330,15 @@ class IDataManagerSavepoint(zope.interface.Interface):
"""
def
rollback
():
"""Rollback any work done since the savepoint
"""Rollback any work done since the savepoint
.
"""
class
ISavepoint
(
zope
.
interface
.
Interface
):
"""A transaction savepoint
"""A transaction savepoint
.
"""
def
rollback
():
"""Rollback any work done since the savepoint
"""Rollback any work done since the savepoint
.
An InvalidSavepointRollbackError is raised if the savepoint
isn't valid.
...
...
@@ -349,13 +349,13 @@ class ISavepoint(zope.interface.Interface):
"Boolean indicating whether the savepoint is valid"
)
class
InvalidSavepointRollbackError
(
Exception
):
"""Attempt to rollback an invalid savepoint
"""Attempt to rollback an invalid savepoint
.
A savepoint may be invalid because:
- The surrounding transaction has committed or aborted
- The surrounding transaction has committed or aborted
.
- An earlier savepoint in the same transaction has been rolled back
- An earlier savepoint in the same transaction has been rolled back
.
"""
class
ISynchronizer
(
zope
.
interface
.
Interface
):
...
...
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