[Zope3-checkins] CVS: Zope3/src/zope/app/mail - event.py:1.2 mail.py:1.4 mailer.py:1.4 service.py:1.3

Steve Alexander steve@cat-box.net
Fri, 6 Jun 2003 15:29:35 -0400


Update of /cvs-repository/Zope3/src/zope/app/mail
In directory cvs.zope.org:/tmp/cvs-serv7875/src/zope/app/mail

Modified Files:
	event.py mail.py mailer.py service.py 
Log Message:
Changed old-style __implements__ to new-style implements()

Also, fixed up some incorrect formatting.


=== Zope3/src/zope/app/mail/event.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/mail/event.py:1.1	Wed Apr 16 09:45:43 2003
+++ Zope3/src/zope/app/mail/event.py	Fri Jun  6 15:29:03 2003
@@ -16,12 +16,13 @@
 $Id$
 """
 from zope.app.interfaces.mail import IMailSentEvent
+from zope.interface import implements
 
 
 class MailSentEvent:
     __doc__ = IMailSentEvent.__doc__
 
-    __implements__ =  IMailSentEvent
+    implements(IMailSentEvent)
 
     def __init__(self, mailer):
         self.mailer = mailer 


=== Zope3/src/zope/app/mail/mail.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/mail/mail.py:1.3	Tue Jun  3 18:46:20 2003
+++ Zope3/src/zope/app/mail/mail.py	Fri Jun  6 15:29:03 2003
@@ -18,11 +18,12 @@
 $Id$
 """
 from zope.app.interfaces.mail import IAsyncMailService
+from zope.interface import implements
 
 class AsyncMailService:
     __doc__ = IAsyncMailService.__doc__
 
-    __implements__ = IAsyncMailService
+    implements(IAsyncMailService)
 
 
     # See zope.app.interfaces.services.mail.IMailService


=== Zope3/src/zope/app/mail/mailer.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/mail/mailer.py:1.3	Mon May 19 06:03:37 2003
+++ Zope3/src/zope/app/mail/mailer.py	Fri Jun  6 15:29:03 2003
@@ -22,12 +22,13 @@
 from zope.app.interfaces.mail import IMailer, IBatchMailer
 from zope.app.event import publish
 from zope.app.mail.event import MailSentEvent
+from zope.interface import implements
 
 
 class SimpleMailer:
     __doc__ = IMailer.__doc__
 
-    __implements__ = IMailer
+    implements(IMailer)
 
     def send(self, fromaddr, toaddrs, message,
              hostname, port, username, password):
@@ -44,7 +45,7 @@
 class BatchMailer:
     __doc__ = IBatchMailer.__doc__
 
-    __implements__ =  IBatchMailer
+    implements(IBatchMailer)
 
     # See zope.app.interfaces.mail.IBatchMailer
     batchDelay = 5000


=== Zope3/src/zope/app/mail/service.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/mail/service.py:1.2	Mon May 19 06:03:37 2003
+++ Zope3/src/zope/app/mail/service.py	Fri Jun  6 15:29:03 2003
@@ -18,11 +18,12 @@
 $Id$
 """
 from zope.app.interfaces.mail import IAsyncMailService
+from zope.interface import implements
 
 class AsyncMailService:
     __doc__ = IAsyncMailService.__doc__
 
-    __implements__ = IAsyncMailService
+    implements(IAsyncMailService)
 
     # See zope.app.interfaces.services.mail.IMailService
     hostname = u''