On Thu, August 18, 2005 2:23, Mark Sapiro said:

> Hans-Juergen Beie wrote:

>>In the first case use
>>   add_virtualhost('www.ourdomain.com', 'newdomain.com')
>
> This will not work. add_virtualhost() is defined in Defaults.py and
> what it does is add a key:value pair to the VIRTUAL_HOSTS dictionary
> where its first argument is the key and the second is the value.

[...]

> add_virtualhost('www.ourdomain.com', 'newdomain.com')
>
> will simply change the value associated with the 'www.ourdomain.com'
> key in the VIRTUAL_HOSTS dictionary from 'ourdomain.com' to
> 'newdomain.com'. It will not make a second entry - Python dictionaries
> do not support multiple entries with the same key.
>
> In the first case, what you do is just keep the default
>
> add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
>
> only and change the host_name attribute of the users-discuss list to
> newdomain.com as I suggested in my previous post in this thread
> (http://mail.python.org/pipermail/mailman-users/2005-August/046174.html).

OK. For some reason I'm missing this posting in my mail folders.
I didn't realize this key-value problem. But your explanation is pretty
clear. Thanks.

hjb :-?


------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp

Reply via email to