diff options
| author | Barry Warsaw | 2011-08-22 22:45:49 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-08-22 22:45:49 -0400 |
| commit | 35e4ca77838ac7bbeca3f8da6ea64a93a6e501d5 (patch) | |
| tree | 7aeaf59aa71fae51b96df28623478a34c90a82b3 /src/mailman/rest/domains.py | |
| parent | 53b064d625e1718f6c053cd3692b91eff3f8c1d1 (diff) | |
| download | mailman-35e4ca77838ac7bbeca3f8da6ea64a93a6e501d5.tar.gz mailman-35e4ca77838ac7bbeca3f8da6ea64a93a6e501d5.tar.zst mailman-35e4ca77838ac7bbeca3f8da6ea64a93a6e501d5.zip | |
Rename IDomain.email_host to .mail_host for consistency. Similarly in the
REST API. (LP: #831660)
Diffstat (limited to 'src/mailman/rest/domains.py')
| -rw-r--r-- | src/mailman/rest/domains.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman/rest/domains.py b/src/mailman/rest/domains.py index 780380270..d42497157 100644 --- a/src/mailman/rest/domains.py +++ b/src/mailman/rest/domains.py @@ -45,8 +45,8 @@ class _DomainBase(resource.Resource, CollectionMixin): base_url=domain.base_url, contact_address=domain.contact_address, description=domain.description, - email_host=domain.email_host, - self_link=path_to('domains/{0}'.format(domain.email_host)), + mail_host=domain.mail_host, + self_link=path_to('domains/{0}'.format(domain.mail_host)), url_host=domain.url_host, ) @@ -88,7 +88,7 @@ class AllDomains(_DomainBase): """Create a new domain.""" domain_manager = getUtility(IDomainManager) try: - validator = Validator(email_host=unicode, + validator = Validator(mail_host=unicode, description=unicode, base_url=unicode, contact_address=unicode, @@ -99,7 +99,7 @@ class AllDomains(_DomainBase): return http.bad_request([], b'Domain exists') except ValueError as error: return http.bad_request([], str(error)) - location = path_to('domains/{0}'.format(domain.email_host)) + location = path_to('domains/{0}'.format(domain.mail_host)) # Include no extra headers or body. return http.created(location, [], None) |
