Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
0f21fb44
Commit
0f21fb44
authored
Jul 11, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some more default implementations.
parent
666dca22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
src/ZODB/BaseStorage.py
src/ZODB/BaseStorage.py
+11
-2
No files found.
src/ZODB/BaseStorage.py
View file @
0f21fb44
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Handy standard storage machinery
"""
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
import
time
,
bpthread
from
POSException
import
UndoError
...
...
@@ -113,11 +113,20 @@ class BaseStorage:
if
base
is
None
:
self
.
_oid
=
'
\
0
\
0
\
0
\
0
\
0
\
0
\
0
\
0
'
else
:
self
.
_oid
=
base
.
_oid
def
abortVersion
(
self
,
src
,
transaction
):
if
transaction
is
not
self
.
_transaction
:
raise
POSException
.
StorageTransactionError
(
self
,
transaction
)
return
[]
def
close
(
self
):
pass
commitVersion
=
abortVersion
def
getName
(
self
):
return
self
.
__name__
def
getSize
(
self
):
return
len
(
self
)
*
300
# WAG!
def
history
(
self
,
oid
,
version
,
length
=
1
):
pass
def
modifiedInVersion
(
self
,
oid
):
return
''
def
new_oid
(
self
,
last
=
None
):
if
last
is
None
:
...
...
@@ -197,7 +206,7 @@ class BaseStorage:
pass
def
undo
(
self
,
transaction_id
):
raise
UndoError
,
'
U
ndoable transaction'
raise
UndoError
,
'
non-u
ndoable transaction'
def
undoLog
(
self
,
first
,
last
,
filter
=
None
):
return
()
...
...
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