diff options
author | bwarsaw <> | 2003-12-01 01:11:15 +0000 |
---|---|---|
committer | bwarsaw <> | 2003-12-01 01:11:15 +0000 |
commit | b335e4b0dc04f5837d0c736f0c7b32449a422bc4 (patch) | |
tree | 35092b30279a7cdcc52111cb5a978291d9e3a4bc /Mailman | |
parent | f482383dc853c12a8ec78b848fb83f548609ea61 (diff) | |
download | mailman2-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.py | 11 |
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 |