diff options
| author | Stephen A. Goss | 2011-08-23 16:07:11 -0700 |
|---|---|---|
| committer | Stephen A. Goss | 2011-08-23 16:07:11 -0700 |
| commit | 4da280bce9f02dc388f70353c7eede3da9f58794 (patch) | |
| tree | 955bb0df0e97ad463249078cdea79d0322b599ab /src/mailman/rest/domains.py | |
| parent | 0b45ed6886360ba858f4a11cb95a3d134fc580dc (diff) | |
| parent | 35e4ca77838ac7bbeca3f8da6ea64a93a6e501d5 (diff) | |
| download | mailman-4da280bce9f02dc388f70353c7eede3da9f58794.tar.gz mailman-4da280bce9f02dc388f70353c7eede3da9f58794.tar.zst mailman-4da280bce9f02dc388f70353c7eede3da9f58794.zip | |
merged changes to main branch
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 61cc28ca0..ca477888c 100644 --- a/src/mailman/rest/domains.py +++ b/src/mailman/rest/domains.py @@ -46,8 +46,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, ) @@ -100,7 +100,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, @@ -111,7 +111,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) |
