[Checkins] SVN: gocept.registration/trunk/src/gocept/registration/
use the IMailDelivery interface as zope.sendmail api suggests
(thanks to sweh for the patch)
Christian Zagrodnick
cz at gocept.com
Mon Apr 28 04:44:10 EDT 2008
Log message for revision 85797:
use the IMailDelivery interface as zope.sendmail api suggests (thanks to sweh for the patch)
Changed:
U gocept.registration/trunk/src/gocept/registration/email.py
U gocept.registration/trunk/src/gocept/registration/tests.py
-=-
Modified: gocept.registration/trunk/src/gocept/registration/email.py
===================================================================
--- gocept.registration/trunk/src/gocept/registration/email.py 2008-04-28 05:30:16 UTC (rev 85796)
+++ gocept.registration/trunk/src/gocept/registration/email.py 2008-04-28 08:44:09 UTC (rev 85797)
@@ -44,5 +44,5 @@
"""
email = gocept.registration.interfaces.IConfirmationEmail(registration)
config = gocept.registration.interfaces.IEmailConfiguration(registration)
- mailer = zope.component.getUtility(zope.sendmail.interfaces.IMailer)
+ mailer = zope.component.getUtility(zope.sendmail.interfaces.IMailDelivery)
mailer.send(config.addr_from, [registration.email], email.message)
Modified: gocept.registration/trunk/src/gocept/registration/tests.py
===================================================================
--- gocept.registration/trunk/src/gocept/registration/tests.py 2008-04-28 05:30:16 UTC (rev 85796)
+++ gocept.registration/trunk/src/gocept/registration/tests.py 2008-04-28 08:44:09 UTC (rev 85797)
@@ -30,7 +30,7 @@
class DummyMailer(object):
"""A dummy mailer."""
- zope.interface.implements(zope.sendmail.interfaces.IMailer)
+ zope.interface.implements(zope.sendmail.interfaces.IMailDelivery)
def send(self, fromaddr, toaddr, msg):
print "(%s -> %s)" % (fromaddr, toaddr)
More information about the Checkins
mailing list