diff options
| author | Barry Warsaw | 2007-09-29 14:55:25 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2007-09-29 14:55:25 -0400 |
| commit | 3e9ed398b6a05c69daca14c8226ca7f57c164c21 (patch) | |
| tree | b0ae2e9771a80f9e0e6218871bbe2d281120202c /Mailman/configuration.py | |
| parent | cbf2967239163e42cc2b25eece7bb5cb71b197fe (diff) | |
| download | mailman-3e9ed398b6a05c69daca14c8226ca7f57c164c21.tar.gz mailman-3e9ed398b6a05c69daca14c8226ca7f57c164c21.tar.zst mailman-3e9ed398b6a05c69daca14c8226ca7f57c164c21.zip | |
Diffstat (limited to 'Mailman/configuration.py')
| -rw-r--r-- | Mailman/configuration.py | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/Mailman/configuration.py b/Mailman/configuration.py index bd76e5fca..b280dfce2 100644 --- a/Mailman/configuration.py +++ b/Mailman/configuration.py @@ -28,14 +28,14 @@ from Mailman.languages import LanguageManager _missing = object() DEFAULT_QRUNNERS = ( - 'Arch', - 'Bounce', - 'Command', - 'Incoming', - 'News', - 'Outgoing', - 'Retry', - 'Virgin', + '.archive.ArchiveRunner', + '.bounce.BounceRunner', + '.command.CommandRunner', + '.incoming.IncomingRunner', + '.news.NewsRunner', + '.outgoing.OutgoingRunner', + '.retry.RetryRunner', + '.virgin.VirginRunner', ) @@ -107,9 +107,9 @@ class Configuration(object): sys.exit(-1) # Based on values possibly set in mailman.cfg, add additional qrunners. if ns['USE_MAILDIR']: - self.add_qrunner('Maildir') + self.add_qrunner('maildir') if ns['USE_LMTP']: - self.add_qrunner('LMTP') + self.add_qrunner('lmtp') # Pull out the defaults. VAR_DIR = os.path.abspath(ns['VAR_DIR']) # Now that we've loaded all the configuration files we're going to @@ -207,7 +207,8 @@ class Configuration(object): E.g. 'HTTP' or 'LMTP'. count is the number of qrunner slices to create, by default, 1. """ - name += 'Runner' + if name.startswith('.'): + name = 'Mailman.queue' + name self.qrunners[name] = count def del_qrunner(self, name): @@ -215,7 +216,8 @@ class Configuration(object): name is the qrunner name and it must not include the 'Runner' suffix. """ - name += 'Runner' + if name.startswith('.'): + name = 'Mailman.queue' + name self.qrunners.pop(name) @property |
