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
a8ce277c
Commit
a8ce277c
authored
Sep 24, 2008
by
Andreas Zeidler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward-port r91439.
parent
55a7bdd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
src/ZODB/blob.py
src/ZODB/blob.py
+3
-0
src/ZODB/tests/testblob.py
src/ZODB/tests/testblob.py
+4
-0
No files found.
src/ZODB/blob.py
View file @
a8ce277c
...
...
@@ -120,6 +120,9 @@ class Blob(persistent.Persistent):
if
self
.
writers
:
raise
BlobError
(
"Already opened for writing."
)
if
self
.
readers
is
None
:
self
.
readers
=
[]
if
mode
==
'r'
:
if
self
.
_current_filename
()
is
None
:
self
.
_create_uncommitted_file
()
...
...
src/ZODB/tests/testblob.py
View file @
a8ce277c
...
...
@@ -141,6 +141,10 @@ class BlobCloneTests(BlobTests):
clone
=
u
.
load
()
clone
.
_p_invalidate
()
# it should also be possible to open the cloned blob
# (even though it won't contain the original data)
clone
.
open
()
class
BlobUndoTests
(
BlobTests
):
...
...
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