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
Kirill Smelkov
ZODB
Commits
de9f0ffa
Commit
de9f0ffa
authored
Mar 21, 2005
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/XXX/TODO/g in new interface verbiage.
parent
743d830c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
70 deletions
+70
-70
src/ZODB/interfaces.py
src/ZODB/interfaces.py
+69
-69
src/transaction/interfaces.py
src/transaction/interfaces.py
+1
-1
No files found.
src/ZODB/interfaces.py
View file @
de9f0ffa
...
@@ -99,16 +99,16 @@ class IConnection(Interface):
...
@@ -99,16 +99,16 @@ class IConnection(Interface):
Groups of methods:
Groups of methods:
User Methods:
User Methods:
root, get, add, close, db, sync, isReadOnly, cacheGC, cacheFullSweep,
root, get, add, close, db, sync, isReadOnly, cacheGC, cacheFullSweep,
cacheMinimize, getVersion, modifiedInVersion
cacheMinimize, getVersion, modifiedInVersion
Experimental Methods:
Experimental Methods:
onCloseCallbacks
onCloseCallbacks
Database Invalidation Methods:
Database Invalidation Methods:
invalidate
invalidate
Other Methods: exchange, getDebugInfo, setDebugInfo,
Other Methods: exchange, getDebugInfo, setDebugInfo,
getTransferCounts
getTransferCounts
"""
"""
...
@@ -121,14 +121,14 @@ class IConnection(Interface):
...
@@ -121,14 +121,14 @@ class IConnection(Interface):
instance that it is connected to.
instance that it is connected to.
Parameters:
Parameters:
version: the "version" that all changes will be made in, defaults
version: the "version" that all changes will be made in, defaults
to no version.
to no version.
cache_size: the target size of the in-memory object cache, measured
cache_size: the target size of the in-memory object cache, measured
in objects.
in objects.
mvcc: boolean indicating whether MVCC is enabled
mvcc: boolean indicating whether MVCC is enabled
txn_mgr: transaction manager to use. None means used the default
txn_mgr: transaction manager to use. None means used the default
transaction manager.
transaction manager.
synch: boolean indicating whether Connection should register for
synch: boolean indicating whether Connection should register for
afterCompletion() calls.
afterCompletion() calls.
"""
"""
...
@@ -172,8 +172,8 @@ class IConnection(Interface):
...
@@ -172,8 +172,8 @@ class IConnection(Interface):
Parameters:
Parameters:
oid: an object id
oid: an object id
Raises KeyError if oid does not exist.
Raises KeyError if oid does not exist.
It is possible that an object does not exist as of the current
It is possible that an object does not exist as of the current
transaction, but existed in the past. It may even exist again in
transaction, but existed in the past. It may even exist again in
the future, if the transaction that removed it is undone.
the future, if the transaction that removed it is undone.
...
@@ -281,15 +281,15 @@ class IConnection(Interface):
...
@@ -281,15 +281,15 @@ class IConnection(Interface):
This includes aborting the current transaction, getting a fresh and
This includes aborting the current transaction, getting a fresh and
consistent view of the data (synchronizing with the storage if possible)
consistent view of the data (synchronizing with the storage if possible)
and call cacheGC() for this connection.
and call cacheGC() for this connection.
This method was especially useful in ZODB 3.2 to better support
This method was especially useful in ZODB 3.2 to better support
read-only connections that were affected by a couple of problems.
read-only connections that were affected by a couple of problems.
"""
"""
# Debug information
# Debug information
def
getDebugInfo
():
def
getDebugInfo
():
"""Returns a tuple with different items for debugging the connection.
"""Returns a tuple with different items for debugging the connection.
Debug information can be added to a connection by using setDebugInfo.
Debug information can be added to a connection by using setDebugInfo.
"""
"""
...
@@ -353,88 +353,88 @@ class IStorage(Interface):
...
@@ -353,88 +353,88 @@ class IStorage(Interface):
"""
"""
def
load
(
oid
,
version
):
def
load
(
oid
,
version
):
"""
XXX
"""
"""
TODO
"""
def
close
():
def
close
():
"""
XXX
"""
"""
TODO
"""
def
cleanup
():
def
cleanup
():
"""
XXX
"""
"""
TODO
"""
def
lastSerial
():
def
lastSerial
():
"""
XXX
"""
"""
TODO
"""
def
lastTransaction
():
def
lastTransaction
():
"""
XXX
"""
"""
TODO
"""
def
lastTid
(
oid
):
def
lastTid
(
oid
):
"""Return last serialno committed for object oid."""
"""Return last serialno committed for object oid."""
def
loadSerial
(
oid
,
serial
):
def
loadSerial
(
oid
,
serial
):
"""
XXX
"""
"""
TODO
"""
def
loadBefore
(
oid
,
tid
):
def
loadBefore
(
oid
,
tid
):
"""
XXX
"""
"""
TODO
"""
def
iterator
(
start
=
None
,
stop
=
None
):
def
iterator
(
start
=
None
,
stop
=
None
):
"""
XXX
"""
"""
TODO
"""
def
sortKey
():
def
sortKey
():
"""
XXX
"""
"""
TODO
"""
def
getName
():
def
getName
():
"""
XXX
"""
"""
TODO
"""
def
getSize
():
def
getSize
():
"""
XXX
"""
"""
TODO
"""
def
history
(
oid
,
version
,
length
=
1
,
filter
=
None
):
def
history
(
oid
,
version
,
length
=
1
,
filter
=
None
):
"""
XXX
"""
"""
TODO
"""
def
new_oid
(
last
=
None
):
def
new_oid
(
last
=
None
):
"""
XXX
"""
"""
TODO
"""
def
set_max_oid
(
possible_new_max_oid
):
def
set_max_oid
(
possible_new_max_oid
):
"""
XXX
"""
"""
TODO
"""
def
registerDB
(
db
,
limit
):
def
registerDB
(
db
,
limit
):
"""
XXX
"""
"""
TODO
"""
def
isReadOnly
():
def
isReadOnly
():
"""
XXX
"""
"""
TODO
"""
def
supportsUndo
():
def
supportsUndo
():
"""
XXX
"""
"""
TODO
"""
def
supportsVersions
():
def
supportsVersions
():
"""
XXX
"""
"""
TODO
"""
def
tpc_abort
(
transaction
):
def
tpc_abort
(
transaction
):
"""
XXX
"""
"""
TODO
"""
def
tpc_begin
(
transaction
):
def
tpc_begin
(
transaction
):
"""
XXX
"""
"""
TODO
"""
def
tpc_vote
(
transaction
):
def
tpc_vote
(
transaction
):
"""
XXX
"""
"""
TODO
"""
def
tpc_finish
(
transaction
,
f
=
None
):
def
tpc_finish
(
transaction
,
f
=
None
):
"""
XXX
"""
"""
TODO
"""
def
getSerial
(
oid
):
def
getSerial
(
oid
):
"""
XXX
"""
"""
TODO
"""
def
loadSerial
(
oid
,
serial
):
def
loadSerial
(
oid
,
serial
):
"""
XXX
"""
"""
TODO
"""
def
loadBefore
(
oid
,
tid
):
def
loadBefore
(
oid
,
tid
):
"""
XXX
"""
"""
TODO
"""
def
getExtensionMethods
():
def
getExtensionMethods
():
"""
XXX
"""
"""
TODO
"""
def
copyTransactionsFrom
():
def
copyTransactionsFrom
():
"""
XXX
"""
"""
TODO
"""
def
store
(
oid
,
oldserial
,
data
,
version
,
transaction
):
def
store
(
oid
,
oldserial
,
data
,
version
,
transaction
):
"""
"""
...
@@ -445,31 +445,31 @@ class IStorage(Interface):
...
@@ -445,31 +445,31 @@ class IStorage(Interface):
class
IUndoableStorage
(
IStorage
):
class
IUndoableStorage
(
IStorage
):
def
undo
(
transaction_id
,
txn
):
def
undo
(
transaction_id
,
txn
):
"""
XXX
"""
"""
TODO
"""
def
undoInfo
():
def
undoInfo
():
"""
XXX
"""
"""
TODO
"""
def
undoLog
(
first
,
last
,
filter
=
None
):
def
undoLog
(
first
,
last
,
filter
=
None
):
"""
XXX
"""
"""
TODO
"""
def
pack
(
t
,
referencesf
):
def
pack
(
t
,
referencesf
):
"""
XXX
"""
"""
TODO
"""
class
IVersioningStorage
(
IStorage
):
class
IVersioningStorage
(
IStorage
):
def
abortVersion
(
src
,
transaction
):
def
abortVersion
(
src
,
transaction
):
"""
XXX
"""
"""
TODO
"""
def
commitVersion
(
src
,
dest
,
transaction
):
def
commitVersion
(
src
,
dest
,
transaction
):
"""
XXX
"""
"""
TODO
"""
def
modifiedInVersion
(
oid
):
def
modifiedInVersion
(
oid
):
"""
XXX
"""
"""
TODO
"""
def
versionEmpty
(
version
):
def
versionEmpty
(
version
):
"""
XXX
"""
"""
TODO
"""
def
versions
(
max
=
None
):
def
versions
(
max
=
None
):
"""
XXX
"""
"""
TODO
"""
src/transaction/interfaces.py
View file @
de9f0ffa
...
@@ -151,7 +151,7 @@ class IDataManager(zope.interface.Interface):
...
@@ -151,7 +151,7 @@ class IDataManager(zope.interface.Interface):
manager must define a sortKey() method that provides a global ordering
manager must define a sortKey() method that provides a global ordering
for resource managers.
for resource managers.
"""
"""
#
XXX:
Alternate version:
# Alternate version:
#"""Return a consistent sort key for this connection.
#"""Return a consistent sort key for this connection.
#
#
#This allows ordering multiple connections that use the same storage in
#This allows ordering multiple connections that use the same storage in
...
...
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