diff options
| author | Barry Warsaw | 2016-04-03 11:54:35 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-04-03 11:54:35 -0400 |
| commit | 3c73b72fddf14c297a93d5ae29b15e6002f9816b (patch) | |
| tree | 3dda5aaf3401d27763f65dd6cda39fe47e900d92 /src/mailman/rest/domains.py | |
| parent | 5b0c0aba4a3778d7b358a7de9d17a07135965948 (diff) | |
| download | mailman-3c73b72fddf14c297a93d5ae29b15e6002f9816b.tar.gz mailman-3c73b72fddf14c297a93d5ae29b15e6002f9816b.tar.zst mailman-3c73b72fddf14c297a93d5ae29b15e6002f9816b.zip | |
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 2b335797e..62e05b82f 100644 --- a/src/mailman/rest/domains.py +++ b/src/mailman/rest/domains.py @@ -99,7 +99,7 @@ class ADomain(_DomainBase): class AllDomains(_DomainBase): """The domains.""" - def on_post(self, context, response): + def on_post(self, request, response): """Create a new domain.""" domain_manager = getUtility(IDomainManager) try: @@ -109,7 +109,7 @@ class AllDomains(_DomainBase): owner=list_of_strings_validator, _optional=( 'description', 'base_url', 'owner')) - values = validator(context) + values = validator(request) # For consistency, owners are passed in as multiple `owner` keys, # but .add() requires an `owners` keyword. Match impedence. owners = values.pop('owner', None) @@ -122,7 +122,7 @@ class AllDomains(_DomainBase): location = self.api.path_to('domains/{}'.format(domain.mail_host)) created(response, location) - def on_get(self, context, response): + def on_get(self, request, response): """/domains""" - resource = self._make_collection(context) + resource = self._make_collection(request) okay(response, etag(resource)) |
