[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/ Forward-port r91439.
Andreas Zeidler
az at zitc.de
Wed Sep 24 12:00:34 EDT 2008
Log message for revision 91442:
Forward-port r91439.
Changed:
U ZODB/trunk/src/ZODB/blob.py
U ZODB/trunk/src/ZODB/tests/testblob.py
-=-
Modified: ZODB/trunk/src/ZODB/blob.py
===================================================================
--- ZODB/trunk/src/ZODB/blob.py 2008-09-24 15:58:36 UTC (rev 91441)
+++ ZODB/trunk/src/ZODB/blob.py 2008-09-24 16:00:33 UTC (rev 91442)
@@ -120,6 +120,9 @@
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()
Modified: ZODB/trunk/src/ZODB/tests/testblob.py
===================================================================
--- ZODB/trunk/src/ZODB/tests/testblob.py 2008-09-24 15:58:36 UTC (rev 91441)
+++ ZODB/trunk/src/ZODB/tests/testblob.py 2008-09-24 16:00:33 UTC (rev 91442)
@@ -141,7 +141,11 @@
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):
def testUndoWithoutPreviousVersion(self):
More information about the Zodb-checkins
mailing list