From d75a7ebb46279f341b498bf517d07e9ae4c27f0a Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 13 Jan 2016 00:14:08 -0500 Subject: Refactor API contexts. Rather than sprinkle API version string tests all over the place, create an IAPI interface which encapsulates the differences between API 3.0 and 3.1, and arrange for this to be used to convert to and from UUIDs. --- src/mailman/rest/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mailman/rest/helpers.py') diff --git a/src/mailman/rest/helpers.py b/src/mailman/rest/helpers.py index 6a1408988..425164ef7 100644 --- a/src/mailman/rest/helpers.py +++ b/src/mailman/rest/helpers.py @@ -186,7 +186,7 @@ class CollectionMixin: return result def path_to(self, resource): - return path_to(resource, self.api_version) + return path_to(resource, self.api.version) -- cgit v1.2.3-70-g09d2