database integration: first draft

- using SQLite as backend

/!\ Not finished yet, break execution. SàT CAN'T LAUNCH PROPERLY IN THE CURRENT STATE
This commit is contained in:
Goffi 2011-10-30 23:13:40 +01:00
commit 1982eb79d8
4 changed files with 235 additions and 72 deletions

View file

@ -444,7 +444,7 @@ class ImapServerFactory(protocol.ServerFactory):
debug (_("IMAP server connection lost (reason: %s)"), reason)
def buildProtocol(self, addr):
debug ("Building protocole")
debug ("Building protocol")
prot = protocol.ServerFactory.buildProtocol(self, addr)
prot.portal = portal.Portal(ImapRealm(self.host))
prot.portal.registerChecker(SatProfileCredentialChecker(self.host))