Remove every old-style class.
This commit is contained in:
parent
27b3592e16
commit
88074cd284
1 changed files with 56 additions and 56 deletions
|
|
@ -49,7 +49,7 @@ PLUGIN_INFO = {
|
|||
"description": _("""Create an Imap server that you can use to read your "normal" type messages""")
|
||||
}
|
||||
|
||||
class IMAP_server():
|
||||
class IMAP_server(object):
|
||||
#TODO: connect profile on mailbox request, once password is accepted
|
||||
|
||||
params = """
|
||||
|
|
@ -75,7 +75,7 @@ class IMAP_server():
|
|||
self.server_factory = ImapServerFactory(self.host)
|
||||
reactor.listenTCP(port, self.server_factory)
|
||||
|
||||
class Message():
|
||||
class Message(object):
|
||||
implements(imap4.IMessage)
|
||||
|
||||
def __init__(self, uid, flags, mess_fp):
|
||||
|
|
@ -151,7 +151,7 @@ class Message():
|
|||
return TypeError
|
||||
|
||||
|
||||
class SatMailbox:
|
||||
class SatMailbox(object):
|
||||
implements(imap4.IMailbox)
|
||||
|
||||
def __init__(self,host,name,profile):
|
||||
|
|
@ -389,7 +389,7 @@ class ImapSatAccount(imap4.MemoryAccount):
|
|||
return SatMailbox(self.host,name,self.profile)
|
||||
|
||||
|
||||
class ImapRealm:
|
||||
class ImapRealm(object):
|
||||
implements(portal.IRealm)
|
||||
|
||||
def __init__(self,host):
|
||||
|
|
@ -402,7 +402,7 @@ class ImapRealm:
|
|||
raise NotImplementedError
|
||||
return imap4.IAccount, ImapSatAccount(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
|
||||
|
|
|
|||
Loading…
Reference in a new issue