[Zodb-checkins] CVS: StandaloneZODB/ZODB - FileStorage.py:1.76.8.6

Jeremy Hylton jeremy@zope.com
Tue, 8 Jan 2002 12:06:26 -0500


Update of /cvs-repository/StandaloneZODB/ZODB
In directory cvs.zope.org:/tmp/cvs-serv17713

Modified Files:
      Tag: Standby-branch
	FileStorage.py 
Log Message:
_tfile will be None for a read-only storage


=== StandaloneZODB/ZODB/FileStorage.py 1.76.8.5 => 1.76.8.6 ===
         self._tindex.clear()
         self._tvindex.clear()
-        self._tfile.seek(0)
+        if self._tfile is not None:
+            self._tfile.seek(0)
 
     def _begin(self, tid, u, d, e):
         self._thl=23+len(u)+len(d)+len(e)