summaryrefslogtreecommitdiff
path: root/src/mailman/rest/root.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-04-03 11:54:35 -0400
committerBarry Warsaw2016-04-03 11:54:35 -0400
commit3c73b72fddf14c297a93d5ae29b15e6002f9816b (patch)
tree3dda5aaf3401d27763f65dd6cda39fe47e900d92 /src/mailman/rest/root.py
parent5b0c0aba4a3778d7b358a7de9d17a07135965948 (diff)
downloadmailman-3c73b72fddf14c297a93d5ae29b15e6002f9816b.tar.gz
mailman-3c73b72fddf14c297a93d5ae29b15e6002f9816b.tar.zst
mailman-3c73b72fddf14c297a93d5ae29b15e6002f9816b.zip
Diffstat (limited to 'src/mailman/rest/root.py')
-rw-r--r--src/mailman/rest/root.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mailman/rest/root.py b/src/mailman/rest/root.py
index 6fad5bc7c..3c38ded5d 100644
--- a/src/mailman/rest/root.py
+++ b/src/mailman/rest/root.py
@@ -69,7 +69,7 @@ class Root:
@public
class Versions:
- def on_get(self, context, response):
+ def on_get(self, request, response):
"""/<api>/system/versions"""
resource = dict(
mailman_version=system.mailman_version,
@@ -85,7 +85,7 @@ class SystemConfiguration:
def __init__(self, section=None):
self._section = section
- def on_get(self, context, response):
+ def on_get(self, request, response):
if self._section is None:
resource = dict(
sections=sorted(section.name for section in config))
@@ -104,14 +104,14 @@ class SystemConfiguration:
@public
class Pipelines:
- def on_get(self, context, response):
+ def on_get(self, request, response):
resource = dict(pipelines=sorted(config.pipelines))
okay(response, etag(resource))
@public
class Chains:
- def on_get(self, context, response):
+ def on_get(self, request, response):
resource = dict(chains=sorted(config.chains))
okay(response, etag(resource))
@@ -128,7 +128,7 @@ class Reserved:
def __init__(self, segments):
self._resource_path = SLASH.join(segments)
- def on_delete(self, context, response):
+ def on_delete(self, request, response):
if self._resource_path != 'uids/orphans':
not_found(response)
return