summaryrefslogtreecommitdiff
path: root/Mailman/bin/config_list.py
diff options
context:
space:
mode:
authormsapiro2006-10-24 03:55:24 +0000
committermsapiro2006-10-24 03:55:24 +0000
commit3256c431e7bf966d3de49e4dc31dd01d57ffb02f (patch)
treee0f32257c2bc73eec34e4ebf2f50c27b0ff23a66 /Mailman/bin/config_list.py
parentf0a263b63991efc787bfd870bd7a491c53dce54a (diff)
downloadmailman-3256c431e7bf966d3de49e4dc31dd01d57ffb02f.tar.gz
mailman-3256c431e7bf966d3de49e4dc31dd01d57ffb02f.tar.zst
mailman-3256c431e7bf966d3de49e4dc31dd01d57ffb02f.zip
Updated the mmshell scripts so all use the configuration.py config object
instead of mm_cfg.py. This involved mostly mechanical replacements, but there were a few gotchas to make sure that various calls and assignments that ultimately referenced the config were delayed until after the config was loaded. Updated configuration.py to throw an exception if config.load() is called with a non-existent filename argument. Updated loginit.py to add the fromusenet log used by gate_news.py.
Diffstat (limited to 'Mailman/bin/config_list.py')
-rw-r--r--Mailman/bin/config_list.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/bin/config_list.py b/Mailman/bin/config_list.py
index 32daecc6c..c2af58e16 100644
--- a/Mailman/bin/config_list.py
+++ b/Mailman/bin/config_list.py
@@ -290,7 +290,7 @@ def do_input(listname, infile, checkonly, verbose, parser):
# one. But we really do provide [0..3] so we need to undo
# the hack that _setValue adds. :( :(
if k == 'subscribe_policy' and \
- not mm_cfg.ALLOW_OPEN_SUBSCRIBE:
+ not config.ALLOW_OPEN_SUBSCRIBE:
validval -= 1
# BAW: Another horrible hack. This one is just too hard
# to fix in a principled way in Mailman 2.1
@@ -299,7 +299,7 @@ def do_input(listname, infile, checkonly, verbose, parser):
# transforms the value into a list of one item.
validval = validval[0]
validval = [bitfield for bitfield, bitval
- in mm_cfg.OPTINFO.items()
+ in config.OPTINFO.items()
if validval & bitval]
gui._setValue(mlist, k, validval, fakedoc)
# BAW: when to do gui._postValidate()???