summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormailman1998-05-20 16:57:22 +0000
committermailman1998-05-20 16:57:22 +0000
commitff5a40fad185ad2c0f7e7904ea88974fe4c4df24 (patch)
tree0581f9b512532fea90cf8d1f86d40048c6f9c192
parent6ce364c361ccd02f52b7e87b418aeeba722b85b8 (diff)
downloadmailman-ff5a40fad185ad2c0f7e7904ea88974fe4c4df24.tar.gz
mailman-ff5a40fad185ad2c0f7e7904ea88974fe4c4df24.tar.zst
mailman-ff5a40fad185ad2c0f7e7904ea88974fe4c4df24.zip
New replacement for new .FormatDisabledNotice().
Use a null path when PATH_INFO is not present - list_info will thereby be null, and the proper error page will be produced.
Diffstat (limited to '')
-rwxr-xr-xcgi/options9
1 files changed, 6 insertions, 3 deletions
diff --git a/cgi/options b/cgi/options
index ecbcd497b..5baaf233b 100755
--- a/cgi/options
+++ b/cgi/options
@@ -6,7 +6,7 @@ Takes listname/userid in PATH_INFO, expecting an "obscured" userid.
(Depending on the mm_utils.{O,Uno}bscureEmail utilities tolerance,
will work fine with an unobscured ids as well.)"""
-__version__ = "$Revision: 405 $"
+__version__ = "$Revision: 526 $"
# We don't need to lock in this script, because we're never going to change
# data.
@@ -25,7 +25,10 @@ except IOError:
doc = htmlformat.HeadlessDocument()
-path = os.environ['PATH_INFO']
+try:
+ path = os.environ['PATH_INFO']
+except KeyError:
+ path = ""
list_info = mm_utils.GetPathPieces(path)
if len(list_info) < 2:
@@ -65,7 +68,6 @@ if list.obscure_addresses:
else:
presentable_user = user
-
replacements = list.GetStandardReplacements()
replacements['<mm-digest-radio-button>'] = list.FormatOptionButton(
mm_cfg.Digests, 1, user)
@@ -79,6 +81,7 @@ replacements['<mm-delivery-enable-button>'] = list.FormatOptionButton(
mm_cfg.DisableDelivery, 0, user)
replacements['<mm-delivery-disable-button>'] = list.FormatOptionButton(
mm_cfg.DisableDelivery, 1, user)
+replacements['<mm-disabled-notice>'] = list.FormatDisabledNotice(user)
replacements['<mm-dont-ack-posts-button>'] = list.FormatOptionButton(
mm_cfg.AcknowlegePosts, 0, user)
replacements['<mm-ack-posts-button>'] = list.FormatOptionButton(