[Zope-Checkins] CVS: ZODB3/ZODB - fspack.py:1.5.2.6

Jeremy Hylton jeremy@zope.com
Thu, 3 Jul 2003 11:34:55 -0400


Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv3376

Modified Files:
      Tag: ZODB3-3_1-branch
	fspack.py 
Log Message:
Fix pack() to accept status "u" -- non-transactional undo.


=== ZODB3/ZODB/fspack.py 1.5.2.5 => 1.5.2.6 ===
--- ZODB3/ZODB/fspack.py:1.5.2.5	Tue Jun 24 17:01:21 2003
+++ ZODB3/ZODB/fspack.py	Thu Jul  3 11:34:51 2003
@@ -176,7 +176,7 @@
         self.ltid = th.tid
         if th.status == "c":
             self.fail(pos, "transaction with checkpoint flag set")
-        if not (th.status == " " or th.status == "p"):
+        if not th.status in " pu": # recognize " ", "p", and "u" as valid
             self.fail(pos, "invalid transaction status: %r", th.status)
         if th.tlen < th.headerlen():
             self.fail(pos, "invalid transaction header: "