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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
2794dae8
Commit
2794dae8
authored
Jun 09, 2007
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed openDetached.
parent
0cb92061
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
src/ZODB/blob.py
src/ZODB/blob.py
+0
-12
No files found.
src/ZODB/blob.py
View file @
2794dae8
...
@@ -168,18 +168,6 @@ class Blob(persistent.Persistent):
...
@@ -168,18 +168,6 @@ class Blob(persistent.Persistent):
raise
BlobError
(
'Uncommitted changes'
)
raise
BlobError
(
'Uncommitted changes'
)
return
self
.
_p_blob_committed
return
self
.
_p_blob_committed
def
openDetached
(
self
,
class_
=
file
):
"""Returns a file(-like) object in read mode that can be used
outside of transaction boundaries.
"""
if
self
.
_current_filename
()
is
None
:
raise
BlobError
(
"Blob does not exist."
)
if
self
.
writers
:
raise
BlobError
(
"Already opened for writing."
)
# XXX this should increase the reader number and have a test !?!
return
class_
(
self
.
_current_filename
(),
"rb"
)
def
consumeFile
(
self
,
filename
):
def
consumeFile
(
self
,
filename
):
"""Will replace the current data of the blob with the file given under
"""Will replace the current data of the blob with the file given under
filename.
filename.
...
...
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