Re: [Mailman-Developers] Changing web_page_url in mm 2.1
I have web_page_url set to the wrong value for a list I just created. Outside of using config_list, is there any easier way to change the domain the list is in?
I believe config_list won't do it. withlist. Go with God.
On Sat, Apr 13, 2002 at 12:38:00AM -0700, Dan Mick wrote:
I have web_page_url set to the wrong value for a list I just created. Outside of using config_list, is there any easier way to change the domain the list is in?
I believe config_list won't do it. withlist.
Indeed, you're right (I also apparently found a bug in config_list):
moremagic.m.o:/var/local/mailman/bin# ./dumpdb ../lists/bamo/config.pck | grep web_page_url 'digest_footer': '_______________________________________________\n%(real_name)s mailing list\n%(real_name)s@%(host_name)s\n%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s\n', 'msg_footer': '_______________________________________________\n%(real_name)s mailing list\n%(real_name)s@%(host_name)s\n%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s\n', 'web_page_url': 'http://www.merlins.org/lists/',
moremagic.m.o:/var/local/mailman/bin# echo "web_page_url = http://lists.merlins.org/lists/" | ./config_list -i - bamo Traceback (most recent call last): File "./config_list", line 270, in ? main() File "./config_list", line 264, in main do_input(listname, infile, checkonly, verbose) File "./config_list", line 207, in do_input execfile(infile, globals) IOError: [Errno 2] No such file or directory
moremagic.m.o:/var/local/mailman/bin# cat >/tmp/setting web_page_url = http://lists.merlins.org/lists/ moremagic.m.o:/var/local/mailman/bin# ./config_list -i /tmp/list bamo
moremagic.m.o:/var/local/mailman/bin# ./dumpdb ../lists/bamo/config.pck | grep web_page_url 'digest_footer': '_______________________________________________\n%(real_name)s mailing list\n%(real_name)s@%(host_name)s\n%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s\n', 'msg_footer': '_______________________________________________\n%(real_name)s mailing list\n%(real_name)s@%(host_name)s\n%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s\n', 'web_page_url': 'http://www.merlins.org/lists/',
We probably need a quick script to change this value for a list
Marc
Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | Finger marc_f@merlins.org for PGP key
We probably need a quick script to change this value for a list
There is, it's called fix_url, as in:
bin/withlist -l -r fix_url <listname>
which will rebuild the value of web_page_url based on the defaults in Defaults.py and mm_cfg.py.
(I asked this question before, which is the only reason I know the answer; perhaps an entry in the FAQ is in order? :-)
-- Harald Koch <chk@pobox.com>
participants (3)
-
Dan Mick
-
Harald Koch
-
Marc MERLIN