diff options
| author | Barry Warsaw | 2007-10-31 17:38:51 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2007-10-31 17:38:51 -0400 |
| commit | f321d85d91a370294e771dbaa22493008d78dfdd (patch) | |
| tree | 8cf4c3e7cab70ccc9059f147ff1bf4b3bf150115 /Mailman/configuration.py | |
| parent | 1ad73a52bb9d82ef3af1e34ad9ef66ac2eda2909 (diff) | |
| download | mailman-f321d85d91a370294e771dbaa22493008d78dfdd.tar.gz mailman-f321d85d91a370294e771dbaa22493008d78dfdd.tar.zst mailman-f321d85d91a370294e771dbaa22493008d78dfdd.zip | |
Diffstat (limited to 'Mailman/configuration.py')
| -rw-r--r-- | Mailman/configuration.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Mailman/configuration.py b/Mailman/configuration.py index e4d8ac715..eee9c8363 100644 --- a/Mailman/configuration.py +++ b/Mailman/configuration.py @@ -172,12 +172,15 @@ class Configuration(object): code = self.DEFAULT_SERVER_LANGUAGE self.languages.enable_language(code) - def add_domain(self, email_host, url_host): - """Add the definition of a virtual domain. + def add_domain(self, email_host, url_host=None): + """Add a virtual domain. - email_host is the right-hand side of the posting email address, - e.g. 'example.com' in 'mylist@example.com'. url_host is the host name - part of the exposed web pages, e.g. 'www.example.com'.""" + :param email_host: The host name for the email interface. + :param url_host: Optional host name for the web interface. If not + given, the email host will be used. + """ + if url_host is None: + url_host = email_host if email_host in self.domains: raise Errors.BadDomainSpecificationError( 'Duplicate email host: %s' % email_host) |
