aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authorbwarsaw <>2003-12-01 01:11:15 +0000
committerbwarsaw <>2003-12-01 01:11:15 +0000
commitb335e4b0dc04f5837d0c736f0c7b32449a422bc4 (patch)
tree35092b30279a7cdcc52111cb5a978291d9e3a4bc /Mailman
parentf482383dc853c12a8ec78b848fb83f548609ea61 (diff)
downloadmailman2-b335e4b0dc04f5837d0c736f0c7b32449a422bc4.tar.gz
mailman2-b335e4b0dc04f5837d0c736f0c7b32449a422bc4.tar.xz
mailman2-b335e4b0dc04f5837d0c736f0c7b32449a422bc4.zip
html_TOC(): If PUBLIC_MBOX is false, use archtocnombox.html which doesn't have
a link to the mbox file.
Diffstat (limited to 'Mailman')
-rw-r--r--Mailman/Archiver/HyperArch.py11
1 files changed, 6 insertions, 5 deletions
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