diff options
| author | Barry Warsaw | 2009-01-01 17:58:39 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-01 17:58:39 -0500 |
| commit | 1c285f110d8e98597453c6b4b69ea01163033547 (patch) | |
| tree | 00c7ec16711b2073e40f593658f652726a9d4231 /mailman/options.py | |
| parent | 12513c7d0fc1f5d2a1aabda349637309f6e8300b (diff) | |
| parent | 600ddb503a391d70230d96ee91a631888d11b35a (diff) | |
| download | mailman-1c285f110d8e98597453c6b4b69ea01163033547.tar.gz mailman-1c285f110d8e98597453c6b4b69ea01163033547.tar.zst mailman-1c285f110d8e98597453c6b4b69ea01163033547.zip | |
Diffstat (limited to 'mailman/options.py')
| -rw-r--r-- | mailman/options.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/mailman/options.py b/mailman/options.py index 94d03f657..32f80d426 100644 --- a/mailman/options.py +++ b/mailman/options.py @@ -1,4 +1,4 @@ -# Copyright (C) 2008 by the Free Software Foundation, Inc. +# Copyright (C) 2008-2009 by the Free Software Foundation, Inc. # # This file is part of GNU Mailman. # @@ -29,10 +29,10 @@ import sys from copy import copy from optparse import Option, OptionParser, OptionValueError -from mailman.version import MAILMAN_VERSION -from mailman.configuration import config +from mailman.config import config +from mailman.core.initialize import initialize from mailman.i18n import _ -from mailman.initialize import initialize +from mailman.version import MAILMAN_VERSION @@ -95,16 +95,18 @@ class Options: '-C', '--config', help=_('Alternative configuration file to use')) - def initialize(self, propagate_logs=False): + def initialize(self, propagate_logs=None): """Initialize the configuration system. After initialization of the configuration system, perform sanity checks. We do it in this order because some sanity checks require the configuration to be initialized. - :param propagate_logs: Flag specifying whether log messages in - sub-loggers should be propagated to the master logger (and hence - to the root logger). + :param propagate_logs: Optional flag specifying whether log messages + in sub-loggers should be propagated to the master logger (and + hence to the root logger). If not given, propagation is taken + from the configuration files. + :type propagate_logs: bool or None. """ initialize(self.options.config, propagate_logs=propagate_logs) self.sanity_check() |
