From 136ceb7679d51fa50504bbcdbf09c224c188e2ec Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sat, 27 Feb 2010 09:57:24 -0800 Subject: Added a urlhost argument to the MailList.MailList.Create() method to allow bin/newlist and the the create CGI to pass urlhost so the host will be correct in the listinfo link on the emptyarchive page. Bug #529100. --- Mailman/Cgi/create.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Mailman/Cgi') diff --git a/Mailman/Cgi/create.py b/Mailman/Cgi/create.py index 7e21b981..dd862208 100644 --- a/Mailman/Cgi/create.py +++ b/Mailman/Cgi/create.py @@ -1,4 +1,4 @@ -# Copyright (C) 2001-2008 by the Free Software Foundation, Inc. +# Copyright (C) 2001-2010 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 @@ -187,7 +187,8 @@ def process_request(doc, cgidata): oldmask = os.umask(002) try: try: - mlist.Create(listname, owner, pw, langs, emailhost) + mlist.Create(listname, owner, pw, langs, emailhost, + urlhost=hostname) finally: os.umask(oldmask) except Errors.EmailAddressError, e: -- cgit v1.2.3