Commit 2794dae8 authored by Jim Fulton's avatar Jim Fulton

Removed openDetached.

parent 0cb92061
...@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment