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
344aaaac
Commit
344aaaac
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
c711cf53
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/ZODB/BaseStorage.py
src/ZODB/BaseStorage.py
+2
-2
src/ZODB/FileStorage/FileStorage.py
src/ZODB/FileStorage/FileStorage.py
+2
-2
No files found.
src/ZODB/BaseStorage.py
View file @
344aaaac
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
##############################################################################
##############################################################################
"""Handy standard storage machinery
"""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
cPickle
import
threading
import
threading
...
@@ -31,7 +31,7 @@ from ZODB.utils import z64
...
@@ -31,7 +31,7 @@ from ZODB.utils import z64
class
BaseStorage
(
UndoLogCompatible
):
class
BaseStorage
(
UndoLogCompatible
):
_transaction
=
None
# Transaction that is being committed
_transaction
=
None
# Transaction that is being committed
_tstatus
=
' '
# Transaction status, used for copying data
_tstatus
=
' '
# Transaction status, used for copying data
_is_read_only
=
0
_is_read_only
=
False
def
__init__
(
self
,
name
,
base
=
None
):
def
__init__
(
self
,
name
,
base
=
None
):
self
.
__name__
=
name
self
.
__name__
=
name
...
...
src/ZODB/FileStorage/FileStorage.py
View file @
344aaaac
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
##############################################################################
##############################################################################
"""Storage implementation using a log written to a single file.
"""Storage implementation using a log written to a single file.
$Revision: 1.
5
$
$Revision: 1.
6
$
"""
"""
import
base64
import
base64
...
@@ -116,7 +116,7 @@ class FileStorage(BaseStorage.BaseStorage,
...
@@ -116,7 +116,7 @@ class FileStorage(BaseStorage.BaseStorage,
quota
=
None
):
quota
=
None
):
if
read_only
:
if
read_only
:
self
.
_is_read_only
=
1
self
.
_is_read_only
=
True
if
create
:
if
create
:
raise
ValueError
(
"can't create a read-only file"
)
raise
ValueError
(
"can't create a read-only file"
)
elif
stop
is
not
None
:
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