Mercurial > libervia-backend
diff src/plugins/plugin_misc_smtp.py @ 588:beaf6bec2fcd
Remove every old-style class.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 18 Jan 2013 17:55:35 +0100 |
parents | 952322b1d490 |
children | e629371a28d3 |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_smtp.py Fri Jan 18 17:55:34 2013 +0100 +++ b/src/plugins/plugin_misc_smtp.py Fri Jan 18 17:55:35 2013 +0100 @@ -49,7 +49,7 @@ "description": _("""Create a SMTP server that you can use to send your "normal" type messages""") } -class SMTP_server(): +class SMTP_server(object): params = """ <params> @@ -74,7 +74,7 @@ self.server_factory = SmtpServerFactory(self.host) reactor.listenTCP(port, self.server_factory) -class SatSmtpMessage: +class SatSmtpMessage(object): implements(smtp.IMessage) def __init__(self, host, profile): @@ -103,7 +103,7 @@ """handle message truncated""" raise smtp.SMTPError -class SatSmtpDelivery: +class SatSmtpDelivery(object): implements(smtp.IMessageDelivery) def __init__(self, host, profile): @@ -144,7 +144,7 @@ """ return origin -class SmtpRealm: +class SmtpRealm(object): implements(portal.IRealm) def __init__(self,host): @@ -157,7 +157,7 @@ raise NotImplementedError return smtp.IMessageDelivery, SatSmtpDelivery(self.host,profile), lambda:None -class SatProfileCredentialChecker: +class SatProfileCredentialChecker(object): """ This credential checker check against SàT's profile and associated jabber's password Check if the profile exists, and if the password is OK