ZODB backward compatibility issue?

David Abrahams <dave-UB3wUj7V41K5azolltMz9laTQe2KTcn/@public.gmane.org>
Newsgroups gmane.mail.spam.spambayes.devel
Message-ID <[email protected]>
The HEAD seems to be relying on features of ZODB that I can't get on
my FreeBSD system.  The following patch makes it stop complaining, but
I freely admit I have no idea whether it's the right patch :).
Anyway, I hope it's helpful.



-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

_______________________________________________
spambayes-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-dev
storage.py.patch (text/x-patch, 668 B)
--- ../../../../../tmp/emacs~/!home!dave!src!spambayes!spambayes!storage.py.~1.60.~	Sat Apr 22 04:41:54 2006
+++ storage.py	Wed Nov  1 06:52:44 2006
@@ -758,7 +758,10 @@
             commit = ZODB.Transaction.get_transaction().commit
             abort = ZODB.Transaction.get_transaction().abort
         from ZODB.POSException import ConflictError
-        from ZODB.POSException import TransactionFailedError
+        try:
+            from ZODB.POSException import TransactionFailedError
+        except:
+            from ZODB.POSException import TransactionError as TransactionFailedError
 
         assert self.closed == False, "Can't store a closed database"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.