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
ac663d79
Commit
ac663d79
authored
Jul 11, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed the constructor to adjust the starting object id for a base storage.
parent
9508b91f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/ZODB/BaseStorage.py
src/ZODB/BaseStorage.py
+4
-3
No files found.
src/ZODB/BaseStorage.py
View file @
ac663d79
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
##############################################################################
##############################################################################
"""Handy standard storage machinery
"""Handy standard storage machinery
"""
"""
__version__
=
'$Revision: 1.
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
import
time
,
bpthread
import
time
,
bpthread
from
POSException
import
UndoError
from
POSException
import
UndoError
...
@@ -95,7 +95,7 @@ class BaseStorage:
...
@@ -95,7 +95,7 @@ class BaseStorage:
_transaction
=
None
_transaction
=
None
_serial
=
z64
_serial
=
z64
def
__init__
(
self
,
name
):
def
__init__
(
self
,
name
,
base
=
None
):
self
.
__name__
=
name
self
.
__name__
=
name
...
@@ -110,7 +110,8 @@ class BaseStorage:
...
@@ -110,7 +110,8 @@ class BaseStorage:
t
=
time
.
time
()
t
=
time
.
time
()
t
=
self
.
_ts
=
apply
(
TimeStamp
,(
time
.
gmtime
(
t
)[:
5
]
+
(
t
%
60
,)))
t
=
self
.
_ts
=
apply
(
TimeStamp
,(
time
.
gmtime
(
t
)[:
5
]
+
(
t
%
60
,)))
self
.
_serial
=
`t`
self
.
_serial
=
`t`
self
.
_oid
=
'
\
0
\
0
\
0
\
0
\
0
\
0
\
0
\
1
'
if
base
is
None
:
self
.
_oid
=
'
\
0
\
0
\
0
\
0
\
0
\
0
\
0
\
0
'
else
:
self
.
_oid
=
base
.
_oid
def
close
(
self
):
pass
def
close
(
self
):
pass
...
...
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