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
Joshua
zodb
Commits
bd2472ac
Commit
bd2472ac
authored
Jul 10, 2010
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned up trailing whitespave
parent
e30c3f37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/ZODB/MappingStorage.py
src/ZODB/MappingStorage.py
+8
-8
No files found.
src/ZODB/MappingStorage.py
View file @
bd2472ac
##############################################################################
#
# Copyright (c) Zope
Corpor
ation and Contributors.
# Copyright (c) Zope
Found
ation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
...
...
@@ -28,7 +28,7 @@ import ZODB.utils
import
zope.interface
class
MappingStorage
(
object
):
zope
.
interface
.
implements
(
ZODB
.
interfaces
.
IStorage
,
ZODB
.
interfaces
.
IStorageIteration
,
...
...
@@ -50,7 +50,7 @@ class MappingStorage(object):
######################################################################
# Preconditions:
def
opened
(
self
):
"""The storage is open
"""
...
...
@@ -94,7 +94,7 @@ class MappingStorage(object):
if
tid_data
:
return
tid_data
.
maxKey
()
raise
ZODB
.
POSException
.
POSKeyError
(
oid
)
# ZODB.interfaces.IStorage
@
ZODB
.
utils
.
locked
(
opened
)
def
history
(
self
,
oid
,
size
=
1
):
...
...
@@ -124,7 +124,7 @@ class MappingStorage(object):
def
iterator
(
self
,
start
=
None
,
end
=
None
):
for
transaction_record
in
self
.
_transactions
.
values
(
start
,
end
):
yield
transaction_record
# ZODB.interfaces.IStorage
@
ZODB
.
utils
.
locked
(
opened
)
def
lastTransaction
(
self
):
...
...
@@ -165,7 +165,7 @@ class MappingStorage(object):
else
:
raise
ZODB
.
POSException
.
POSKeyError
(
oid
)
# ZODB.interfaces.IStorage
@
ZODB
.
utils
.
locked
(
opened
)
def
loadSerial
(
self
,
oid
,
serial
):
...
...
@@ -189,7 +189,7 @@ class MappingStorage(object):
def
pack
(
self
,
t
,
referencesf
,
gc
=
True
):
if
not
self
.
_data
:
return
stop
=
`ZODB.TimeStamp.TimeStamp(*time.gmtime(t)[:5]+(t%60,))`
if
self
.
_last_pack
is
not
None
and
self
.
_last_pack
>=
stop
:
if
self
.
_last_pack
==
stop
:
...
...
@@ -312,7 +312,7 @@ class MappingStorage(object):
self
.
_transaction
=
None
del
self
.
_tdata
self
.
_commit_lock
.
release
()
# ZEO.interfaces.IServeable
@
ZODB
.
utils
.
locked
(
opened
)
def
tpc_transaction
(
self
):
...
...
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