Ticket #6547: my-twisted-patch.patch

File my-twisted-patch.patch, 1.3 KB (added by mulhern, 9 years ago)
  • twisted/mail/topfiles/6547.removal

     
     1twisted.mail.MaildirBroker removed because both its methods are obsolete and fail with an AttributeError if invoked.
  • twisted/mail/pb.py

     
    8989    remote_getSubFolder = getSubFolder
    9090
    9191
    92 class MaildirBroker(pb.Broker):
    93 
    94     def proto_getCollection(self, requestID, name, domain, password):
    95         collection = self._getCollection()
    96         if collection is None:
    97             self.sendError(requestID, "permission denied")
    98         else:
    99             self.sendAnswer(requestID, collection)
    100 
    101     def getCollection(self, name, domain, password):
    102         if not self.domains.has_key(domain):
    103             return
    104         domain = self.domains[domain]
    105         if (domain.dbm.has_key(name) and
    106             domain.dbm[name] == password):
    107             return MaildirCollection(domain.userDirectory(name))
    108 
    109 
    11092class MaildirClient(pb.Broker):
    11193
    11294    def getCollection(self, name, domain, password, callback, errback):