[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/blob.py Removed openDetached.

Jim Fulton jim at zope.com
Sat Jun 9 09:19:36 EDT 2007


Log message for revision 76547:
  Removed openDetached.
  

Changed:
  U   ZODB/trunk/src/ZODB/blob.py

-=-
Modified: ZODB/trunk/src/ZODB/blob.py
===================================================================
--- ZODB/trunk/src/ZODB/blob.py	2007-06-09 13:05:41 UTC (rev 76546)
+++ ZODB/trunk/src/ZODB/blob.py	2007-06-09 13:19:35 UTC (rev 76547)
@@ -168,18 +168,6 @@
             raise BlobError('Uncommitted changes')
         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):
         """Will replace the current data of the blob with the file given under
         filename.



More information about the Zodb-checkins mailing list