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
1b6f7156
Commit
1b6f7156
authored
May 04, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update IStorage.load to reflect it's diminished status
parent
227953b9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
src/ZODB/interfaces.py
src/ZODB/interfaces.py
+14
-0
src/ZODB/utils.py
src/ZODB/utils.py
+3
-0
No files found.
src/ZODB/interfaces.py
View file @
1b6f7156
...
@@ -577,6 +577,20 @@ class IStorage(Interface):
...
@@ -577,6 +577,20 @@ class IStorage(Interface):
def
load
(
oid
,
version
):
def
load
(
oid
,
version
):
"""Load data for an object id
"""Load data for an object id
NOTE: This method is deprecated and may be removed in the
future. It is no longer used by ZODB, although it may still
be used in some tests or scripts. Previously, there was a
requirement that load results be properly ordered with
invalidations so that at any point in time, clients have a
consistent view of what version of an object is current. This
restriction has been relaxed and some storages will be
simplified as a result of the removal of this requirement.
An alternative to calling load is calling loadBefore passing
ZODB,utils.maxtid::
store.loadBefore(oid, ZODB.utils.maxtid)
The version argumement should always be an empty string. It
The version argumement should always be an empty string. It
exists soley for backward compatibility with older storage
exists soley for backward compatibility with older storage
implementations.
implementations.
...
...
src/ZODB/utils.py
View file @
1b6f7156
...
@@ -34,6 +34,7 @@ __all__ = ['z64',
...
@@ -34,6 +34,7 @@ __all__ = ['z64',
'u64'
,
'u64'
,
'U64'
,
'U64'
,
'cp'
,
'cp'
,
'maxtid'
,
'newTid'
,
'newTid'
,
'oid_repr'
,
'oid_repr'
,
'serial_repr'
,
'serial_repr'
,
...
@@ -102,6 +103,8 @@ else:
...
@@ -102,6 +103,8 @@ else:
z64
=
b'
\
0
'
*
8
z64
=
b'
\
0
'
*
8
maxtid
=
b'
\
xff
'
*
8
assert
sys
.
hexversion
>=
0x02030000
assert
sys
.
hexversion
>=
0x02030000
# The distinction between ints and longs is blurred in Python 2.2,
# The distinction between ints and longs is blurred in Python 2.2,
...
...
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