Remove every old-style class.

This commit is contained in:
Emmanuel Gil Peyrot 2013-01-18 17:55:35 +01:00
commit 88074cd284

View file

@ -49,7 +49,7 @@ PLUGIN_INFO = {
"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 @@ class SMTP_server():
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 @@ class SatSmtpMessage:
"""handle message truncated"""
raise smtp.SMTPError
class SatSmtpDelivery:
class SatSmtpDelivery(object):
implements(smtp.IMessageDelivery)
def __init__(self, host, profile):
@ -144,7 +144,7 @@ class SatSmtpDelivery:
"""
return origin
class SmtpRealm:
class SmtpRealm(object):
implements(portal.IRealm)
def __init__(self,host):
@ -157,7 +157,7 @@ class SmtpRealm:
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