[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/mail/delivery.py IDataManagers are now required to have a sortKey() method, afaik for

Philipp von Weitershausen philikon at philikon.de
Wed Jul 21 11:34:10 EDT 2004


Log message for revision 26653:
  IDataManagers are now required to have a sortKey() method, afaik for
  dead-lock resolutions.  This makes mail delivery work again, e.g. in
  zwiki3.
  


Changed:
  U   Zope3/trunk/src/zope/app/mail/delivery.py


-=-
Modified: Zope3/trunk/src/zope/app/mail/delivery.py
===================================================================
--- Zope3/trunk/src/zope/app/mail/delivery.py	2004-07-21 15:11:32 UTC (rev 26652)
+++ Zope3/trunk/src/zope/app/mail/delivery.py	2004-07-21 15:34:10 UTC (rev 26653)
@@ -35,7 +35,6 @@
 from transaction.util import NoSavepointSupportRollback
 
 class MailDataManager(object):
-
     implements(IDataManager)
 
     def __init__(self, callable, args=(), onAbort=None):
@@ -56,6 +55,8 @@
     def savepoint(self, transaction):
         return NoSavepointSupportRollback(self)
 
+    def sortKey(self):
+	return id(self)
 
 class AbstractMailDelivery(object):
 



More information about the Zope3-Checkins mailing list