Update of /cvsroot/mailman/mailman/Mailman/Archiver
In directory sc8-pr-cvs1:/tmp/cvs-serv13839/Mailman/Archiver
Modified Files:
Tag: Release_2_1-maint
HyperArch.py
Log Message:
html_TOC(): If PUBLIC_MBOX is false, use archtocnombox.html which doesn't have
a link to the mbox file.
Index: HyperArch.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Archiver/HyperArch.py,v
retrieving revision 2.37.2.4
retrieving revision 2.37.2.5
diff -u -d -r2.37.2.4 -r2.37.2.5
--- HyperArch.py 22 Sep 2003 02:40:51 -0000 2.37.2.4
+++ HyperArch.py 1 Dec 2003 01:11:15 -0000 2.37.2.5
@@ -735,13 +735,14 @@
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
_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org