[Zope-Checkins] CVS: Zope/lib/python/ZODB - fspack.py:1.5.4.5

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


Update of /cvs-repository/Zope/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv3858

Modified Files:
      Tag: Zope-2_6-branch
	fspack.py 
Log Message:
Make pack() recognize status "u" -- non-transactional undo.


=== Zope/lib/python/ZODB/fspack.py 1.5.4.4 => 1.5.4.5 ===
--- Zope/lib/python/ZODB/fspack.py:1.5.4.4	Tue Jun 24 17:02:21 2003
+++ Zope/lib/python/ZODB/fspack.py	Thu Jul  3 11:38:06 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: "