From 6684e734f8e271aec3bf63233b19e2a57ce87d98 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sun, 4 Nov 2007 15:03:38 -0800 Subject: - Cgi/options.py - fixed to not present the "empty" topic to user. - Handlers/CalcRecips.py - Changed to not process topics if topics are disabled for the list. --- Mailman/Cgi/options.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Mailman/Cgi') diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py index d423f262..ab19e4e2 100644 --- a/Mailman/Cgi/options.py +++ b/Mailman/Cgi/options.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2006 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2007 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -797,6 +797,8 @@ def options_page(mlist, doc, user, cpuser, userlang, message=''): if mlist.topics: table = Table(border="0") for name, pattern, description, emptyflag in mlist.topics: + if emptyflag: + continue quotedname = urllib.quote_plus(name) details = Link(mlist.GetScriptURL('options') + '/%s/?VARHELP=%s' % (user, quotedname), -- cgit v1.2.3