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
1273166b
Commit
1273166b
authored
Nov 17, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean-ups
parent
54740503
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
src/ZODB/interfaces.py
src/ZODB/interfaces.py
+5
-9
No files found.
src/ZODB/interfaces.py
View file @
1273166b
...
@@ -541,8 +541,8 @@ class IStorageTransactionMetaData(Interface):
...
@@ -541,8 +541,8 @@ class IStorageTransactionMetaData(Interface):
Note that unlike transaction.interfaces.ITransaction, the ``user``
Note that unlike transaction.interfaces.ITransaction, the ``user``
and ``description`` attributes are bytes, not text.
and ``description`` attributes are bytes, not text.
"""
"""
user
=
Attribute
(
"
T
ransaction user"
)
user
=
Attribute
(
"
Bytes t
ransaction user"
)
description
=
Attribute
(
"
T
ransaction Description"
)
description
=
Attribute
(
"
Bytes t
ransaction Description"
)
extension
=
Attribute
(
extension
=
Attribute
(
"A dictionary carrying a transaction's extended_info data"
)
"A dictionary carrying a transaction's extended_info data"
)
...
@@ -558,7 +558,7 @@ class IStorage(Interface):
...
@@ -558,7 +558,7 @@ class IStorage(Interface):
implement multi-version concurrency control.
implement multi-version concurrency control.
There are methods in IStorage and in derived interfaces that
There are methods in IStorage and in derived interfaces that
provide information
b
about the current revisions (tids) for objects
provide information about the current revisions (tids) for objects
or for the database as a whole. It is critical for the proper
or for the database as a whole. It is critical for the proper
working of ZODB that the resulting tids are increasing with
working of ZODB that the resulting tids are increasing with
respect to the object identifier given or to the databases. That
respect to the object identifier given or to the databases. That
...
@@ -799,7 +799,7 @@ class IStorage(Interface):
...
@@ -799,7 +799,7 @@ class IStorage(Interface):
def
tpc_begin
(
transaction
):
def
tpc_begin
(
transaction
):
"""Begin the two-phase commit process.
"""Begin the two-phase commit process.
The argument provides IStorageTransactionMetaData
ExtensionBytes
.
The argument provides IStorageTransactionMetaData.
If storage is already participating in a two-phase commit
If storage is already participating in a two-phase commit
using the same transaction, a StorageTransactionError is raised.
using the same transaction, a StorageTransactionError is raised.
...
@@ -910,7 +910,7 @@ class IStorageRestoreable(IStorage):
...
@@ -910,7 +910,7 @@ class IStorageRestoreable(IStorage):
using a different transaction, the call blocks until the
using a different transaction, the call blocks until the
current transaction ends (commits or aborts).
current transaction ends (commits or aborts).
The first argument provides IStorageTransactionMetaData
ExtensionBytes
.
The first argument provides IStorageTransactionMetaData.
If a transaction id is given, then the transaction will use
If a transaction id is given, then the transaction will use
the given id rather than generating a new id. This is used
the given id rather than generating a new id. This is used
...
@@ -979,10 +979,6 @@ class IStorageTransactionInformation(IStorageTransactionMetaData):
...
@@ -979,10 +979,6 @@ class IStorageTransactionInformation(IStorageTransactionMetaData):
"""
"""
tid
=
Attribute
(
"Transaction id"
)
tid
=
Attribute
(
"Transaction id"
)
user
=
Attribute
(
"Transaction user"
)
description
=
Attribute
(
"Transaction Description"
)
extension
=
Attribute
(
"A dictionary carrying the transaction's extension data"
)
def
__iter__
():
def
__iter__
():
"""Iterate over the transaction's records given as
"""Iterate over the transaction's records given as
...
...
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