aboutsummaryrefslogtreecommitdiff
path: root/rscalib
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-04 12:13:21 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-04 12:13:21 +0200
commit4a0882384c7b302167bb641b8cc1fcfcc3364780 (patch)
tree289610ab487e0b53f6adf81dd7868a3187ed463e /rscalib
parent60b5b46801044010c4a820a038cb44b2fdec6435 (diff)
downloadremote-logon-config-agent-4a0882384c7b302167bb641b8cc1fcfcc3364780.tar.gz
remote-logon-config-agent-4a0882384c7b302167bb641b8cc1fcfcc3364780.tar.bz2
remote-logon-config-agent-4a0882384c7b302167bb641b8cc1fcfcc3364780.zip
rscalib/__init__.py: Switch API v4 and API v5 definitions around.
Diffstat (limited to 'rscalib')
-rw-r--r--rscalib/__init__.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/rscalib/__init__.py b/rscalib/__init__.py
index 7077f96..948b42a 100644
--- a/rscalib/__init__.py
+++ b/rscalib/__init__.py
@@ -187,17 +187,10 @@ class GetMazaDataAPI1(GetMazaData):
return urllib.request.Request(self.get_api_url() + path)
-class GetMazaDataAPI5(GetMazaDataAPI4):
- """Get the maza data for a given username/email and password via API v5."""
-
- # identical for now with API v4 regarding the URL request part.
+class GetMazaDataAPI5(GetMazaData):
+ """Get the maza data for a given email and password via API v5."""
api_version = 5
-
-class GetMazaDataAPI4(GetMazaData):
- """Get the maza data for a given email and password via API v4."""
- api_version = 4
-
def get_url(self):
return self.get_api_url()
@@ -210,6 +203,13 @@ class GetMazaDataAPI4(GetMazaData):
return request
+class GetMazaDataAPI4(GetMazaDataAPI5):
+ """Get the maza data for a given username/email and password via API v4."""
+
+ # identical for now with API v4 regarding the URL request part.
+ api_version = 4
+
+
class GetMazaDataAPI3(GetMazaDataAPI4):
"""Get the maza data for a given email and password via API v3."""
api_version = 3