[Mailman-Users] Base URL for Mailman web interface

An-Dee andee at host206.hsurg.dote.hu
Thu Jun 13 18:37:57 CEST 2002


Hello Richard,

Thursday, June 13, 2002, 4:49:23 PM, you wrote:

RB> At 12:32 13/06/2002 +0200, Joern Nettingsmeier wrote:
>>An-Dee wrote:
>> >
>> > Hello,
>> >
>> >  As a mistake, I set a wrong path to the web interface.
>> >  How can I set it correctly with command line? 'cos the web interface
>> >  is not working.
>>
>>this happened to me, too. i don't have mailman group rights, so i had to
>>ask the admin to fix it for me. what is the reason that this option
>>exists at all ? i can't see what you can do with it, besides breaking
>>things. i haven't checked 2.1, but i hope it's gone there....

RB> Editing the web_page-url needs to be done carefully. Doing without the 
RB> ability to edit it (like in MM 2.1); fine until you actually need to change 
RB> it for a single list.

RB> Anyway putting the following script in your $prefix/bin directory and using 
RB> it per directions may help your problem:

RB> start fix-url.py ------------------------------------------------------------
RB> # Copyright (C) 2001 by the Free Software Foundation, Inc.
RB> #
RB> # This program is free software; you can redistribute it and/or
RB> # modify it under the terms of the GNU General Public License
RB> # as published by the Free Software Foundation; either version 2
RB> # of the License, or (at your option) any later version.
RB> #
RB> # This program is distributed in the hope that it will be useful,
RB> # but WITHOUT ANY WARRANTY; without even the implied warranty of
RB> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
RB> # GNU General Public License for more details.
RB> #
RB> # You should have received a copy of the GNU General Public License
RB> # along with this program; if not, write to the Free Software
RB> # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

RB> """Reset a list's web_page_url attribute to the default setting.

RB> This script is intended to be run as a bin/withlist script, i.e.

RB> % bin/withlist -l -r fix_url <mylist>
RB> """

RB> from Mailman import mm_cfg
RB> from Mailman.i18n import _




RB> def fix_url(mlist):
RB>      mlist.web_page_url = mm_cfg.DEFAULT_URL
RB>      print _('Saving list')
RB>      mlist.Save()
RB> end fix-url.py ------------------------------------------------------------



RB> ------------------------------------------------------
RB> Mailman-Users mailing list
RB> Mailman-Users at python.org
RB> http://mail.python.org/mailman/listinfo/mailman-users
RB> Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py

Finally, I could solve the problem.
I got the general page of my list, save it as html, and edited the
action in the form with the right path.
Uploaded this file, and type it's url, it asked for auth. click back
and submit :)

(i hope it was clear)



-- 
Best regards,
 An-Dee                            mailto:andee at host206.hsurg.dote.hu






More information about the Mailman-Users mailing list