From b335e4b0dc04f5837d0c736f0c7b32449a422bc4 Mon Sep 17 00:00:00 2001 From: bwarsaw <> Date: Mon, 1 Dec 2003 01:11:15 +0000 Subject: html_TOC(): If PUBLIC_MBOX is false, use archtocnombox.html which doesn't have a link to the mbox file. --- Mailman/Archiver/HyperArch.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Mailman/Archiver') diff --git a/Mailman/Archiver/HyperArch.py b/Mailman/Archiver/HyperArch.py index 328e0dcc..9f64def7 100644 --- a/Mailman/Archiver/HyperArch.py +++ b/Mailman/Archiver/HyperArch.py @@ -735,13 +735,14 @@ class HyperArchive(pipermail.T): d["archive_listing"] = EMPTYSTRING.join(accum) finally: i18n.set_translation(otrans) - # The TOC is always in the charset of the list's preferred language d['meta'] += html_charset % Utils.GetCharSet(mlist.preferred_language) - - return quick_maketext( - 'archtoc.html', d, - mlist=mlist) + # The site can disable public access to the mbox file. + if mm_cfg.PUBLIC_MBOX: + template = 'archtoc.html' + else: + template = 'archtocnombox.html' + return quick_maketext(template, d, mlist=mlist) def html_TOC_entry(self, arch): # Check to see if the archive is gzip'd or not -- cgit v1.2.3