[Mailman-Users] Can't create list

Mark Sapiro mark at msapiro.net
Tue Jul 15 08:32:47 CEST 2008


Mike Brown wrote:
> On Mon, Jul 14, 2008 at 07:04:46PM -0700, Mark Sapiro wrote:
> 
>> Put the following in mm_cfg.py
>>
>> DEFAULT_URL_HOST = 'vidiot.com'
>> DEFAULT_EMAIL_HOST = 'vidiot.com'
> 
> Those two lines were there.
> 
>> VIRTUAL_HOSTS.clear()
> 
> Don't see this mentioned in the Defaults.py file.


It's not. What's in Defaults.py is

VIRTUAL_HOSTS = {}

and

add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

These two things initialize VIRTUAL_HOSTS to an empty dictionary and 
then add the DEFAULT_URL_HOST: DEFAULT_EMAIL_HOST entry.

When you change DEFAULT_URL_HOST and/or DEFAULT_EMAIL_HOST in mm_cfg.py, 
you want to clear the VIRTUAL_HOSTS dictionary and start over. Granted, 
Defaults.py only mentions putting the add_virtualhost in mm_cfg.py, and 
it isn't strictly necessary to remove the original entry from 
Defaults.py, but I think it's good to do. See <http://wiki.list.org/x/gIA9>.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan


More information about the Mailman-Users mailing list