diff options
| author | Barry Warsaw | 2012-09-22 11:16:26 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2012-09-22 11:16:26 -0400 |
| commit | a8e5f267b418cd4bb577ae229fd7e22d5720e93f (patch) | |
| tree | cff784535bce7134407d1ece7f94fd9b9f74a1ee /src/mailman/rest/root.py | |
| parent | d20bb305a007f156ded813f5823fcf7ded66075b (diff) | |
| parent | 8271738ba287c4688173ff760118996c1590b84f (diff) | |
| download | mailman-a8e5f267b418cd4bb577ae229fd7e22d5720e93f.tar.gz mailman-a8e5f267b418cd4bb577ae229fd7e22d5720e93f.tar.zst mailman-a8e5f267b418cd4bb577ae229fd7e22d5720e93f.zip | |
Diffstat (limited to 'src/mailman/rest/root.py')
| -rw-r--r-- | src/mailman/rest/root.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mailman/rest/root.py b/src/mailman/rest/root.py index 8c1a31cf2..ea1650e75 100644 --- a/src/mailman/rest/root.py +++ b/src/mailman/rest/root.py @@ -123,8 +123,10 @@ class TopLevel(resource.Resource): if len(segments) == 0: return AllLists() else: - list_name = segments.pop(0) - return AList(list_name), segments + # list-id is preferred, but for backward compatibility, + # fqdn_listname is also accepted. + list_identifier = segments.pop(0) + return AList(list_identifier), segments @resource.child() def members(self, request, segments): |
