diff options
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)) |
