Commit 41fc1acd authored by Tim Peters's avatar Tim Peters

Close unterminated sentences.

parent dd3304ef
...@@ -19,7 +19,7 @@ $Id$ ...@@ -19,7 +19,7 @@ $Id$
import zope.interface import zope.interface
class ITransactionManager(zope.interface.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. Applications use transaction managers to establish transaction boundaries.
""" """
...@@ -35,11 +35,11 @@ class ITransactionManager(zope.interface.Interface): ...@@ -35,11 +35,11 @@ class ITransactionManager(zope.interface.Interface):
""" """
def commit(): def commit():
"""Commit the current transaction """Commit the current transaction.
""" """
def abort(): def abort():
"""Abort the current transaction """Abort the current transaction.
""" """
def savepoint(optimistic=False): def savepoint(optimistic=False):
...@@ -268,7 +268,7 @@ class IDataManager(zope.interface.Interface): ...@@ -268,7 +268,7 @@ class IDataManager(zope.interface.Interface):
""" """
def tpc_vote(transaction): 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 This is the last chance for a data manager to vote 'no'. A
data manager votes 'no' by raising an exception. data manager votes 'no' by raising an exception.
...@@ -295,7 +295,7 @@ class IDataManager(zope.interface.Interface): ...@@ -295,7 +295,7 @@ class IDataManager(zope.interface.Interface):
""" """
def sortKey(): 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 ZODB uses a global sort order to prevent deadlock when it commits
transactions involving multiple resource managers. The resource transactions involving multiple resource managers. The resource
...@@ -313,11 +313,11 @@ class IDataManager(zope.interface.Interface): ...@@ -313,11 +313,11 @@ class IDataManager(zope.interface.Interface):
class ISavepointDataManager(IDataManager): class ISavepointDataManager(IDataManager):
def savepoint(): def savepoint():
"""Return a data-manager savepoint (IDataManagerSavepoint) """Return a data-manager savepoint (IDataManagerSavepoint).
""" """
class IDataManagerSavepoint(zope.interface.Interface): 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. Datamanager savepoints are used by, and only by, transaction savepoints.
...@@ -330,15 +330,15 @@ class IDataManagerSavepoint(zope.interface.Interface): ...@@ -330,15 +330,15 @@ class IDataManagerSavepoint(zope.interface.Interface):
""" """
def rollback(): def rollback():
"""Rollback any work done since the savepoint """Rollback any work done since the savepoint.
""" """
class ISavepoint(zope.interface.Interface): class ISavepoint(zope.interface.Interface):
"""A transaction savepoint """A transaction savepoint.
""" """
def rollback(): def rollback():
"""Rollback any work done since the savepoint """Rollback any work done since the savepoint.
An InvalidSavepointRollbackError is raised if the savepoint An InvalidSavepointRollbackError is raised if the savepoint
isn't valid. isn't valid.
...@@ -349,13 +349,13 @@ class ISavepoint(zope.interface.Interface): ...@@ -349,13 +349,13 @@ class ISavepoint(zope.interface.Interface):
"Boolean indicating whether the savepoint is valid") "Boolean indicating whether the savepoint is valid")
class InvalidSavepointRollbackError(Exception): class InvalidSavepointRollbackError(Exception):
"""Attempt to rollback an invalid savepoint """Attempt to rollback an invalid savepoint.
A savepoint may be invalid because: 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): class ISynchronizer(zope.interface.Interface):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment