def __init__(self, slice=None, numslices=1): self._kids = {} # Create our own switchboard. Don't use the switchboard cache because # we want to provide slice and numslice arguments. self._switchboard = Switchboard(self.QDIR, slice, numslices, True) # Create the shunt switchboard self._shunt = Switchboard(mm_cfg.SHUNTQUEUE_DIR) self._stop = False
def __init__(self, slice=None, numslices=1): Runner.__init__(self, slice, numslices) BounceMixin.__init__(self) # We look this function up only at startup time modname = 'Mailman.Handlers.' + mm_cfg.DELIVERY_MODULE mod = __import__(modname) self._func = getattr(sys.modules[modname], 'process') # This prevents smtp server connection problems from filling up the # error log. It gets reset if the message was successfully sent, and # set if there was a socket.error. self.__logged = False self.__retryq = Switchboard(mm_cfg.RETRYQUEUE_DIR)
def get_switchboard(qdir): switchboard = _sbcache.setdefault(qdir, Switchboard(qdir)) return switchboard
def __init__(self, slice=None, numslices=1): Runner.__init__(self, slice, numslices) self.__outq = Switchboard(mm_cfg.OUTQUEUE_DIR)