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
85a3822c
Commit
85a3822c
authored
Feb 26, 2004
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the defaults bools instead of ints.
parent
33f3c4a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
trunk/src/ZODB/BaseStorage.py
trunk/src/ZODB/BaseStorage.py
+2
-2
trunk/src/ZODB/FileStorage/FileStorage.py
trunk/src/ZODB/FileStorage/FileStorage.py
+2
-2
No files found.
trunk/src/ZODB/BaseStorage.py
View file @
85a3822c
...
...
@@ -13,7 +13,7 @@
##############################################################################
"""Handy standard storage machinery
$Id: BaseStorage.py,v 1.4
2 2004/02/19 18:51:0
3 jeremy Exp $
$Id: BaseStorage.py,v 1.4
3 2004/02/26 22:53:2
3 jeremy Exp $
"""
import
cPickle
import
threading
...
...
@@ -31,7 +31,7 @@ from ZODB.utils import z64
class
BaseStorage
(
UndoLogCompatible
):
_transaction
=
None
# Transaction that is being committed
_tstatus
=
' '
# Transaction status, used for copying data
_is_read_only
=
0
_is_read_only
=
False
def
__init__
(
self
,
name
,
base
=
None
):
self
.
__name__
=
name
...
...
trunk/src/ZODB/FileStorage/FileStorage.py
View file @
85a3822c
...
...
@@ -13,7 +13,7 @@
##############################################################################
"""Storage implementation using a log written to a single file.
$Revision: 1.
5
$
$Revision: 1.
6
$
"""
import
base64
...
...
@@ -116,7 +116,7 @@ class FileStorage(BaseStorage.BaseStorage,
quota
=
None
):
if
read_only
:
self
.
_is_read_only
=
1
self
.
_is_read_only
=
True
if
create
:
raise
ValueError
(
"can't create a read-only file"
)
elif
stop
is
not
None
:
...
...
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