[Zope3-checkins] CVS: ZODB4/ZODB - POSException.py:1.16

Jeremy Hylton jeremy@zope.com
Mon, 29 Jul 2002 15:09:06 -0400


Update of /cvs-repository/ZODB4/ZODB
In directory cvs.zope.org:/tmp/cvs-serv16396/ZODB

Modified Files:
	POSException.py 
Log Message:
Fix bugs in format/conversion of OIDs.

XXX This code needs some explicit tests, because the meager ones I
added in transactional undo tests are insufficient.




=== ZODB4/ZODB/POSException.py 1.15 => 1.16 ===
     def __str__(self):
         extras = []
         if self.oid:
-            extras.append("oid %016x" % _fmt_oid(self.oid))
+            extras.append("oid %s" % _fmt_oid(self.oid))
         if self.class_name:
             extras.append("class %s" % self.class_name)
         if self.serials:
-            extras.append("serial was %016x, now %016x" %
+            extras.append("serial was %s, now %s" %
                           tuple(map(_fmt_oid, self.serials)))
         if extras:
             return "%s (%s)" % (self.message, ", ".join(extras))