summaryrefslogtreecommitdiff
path: root/wrappers/python/eduvpn_common
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-27 16:38:25 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-27 16:38:25 +0200
commit4715b9c54fb6411019595175ef6326703e2012bf (patch)
tree2fc179b46a7a2f4b2c778a3924aac81f1f453060 /wrappers/python/eduvpn_common
parentd8e466712a4c5af17c27953b38f1b4e7d914d5cf (diff)
Python Server: Add a category string for servers
Diffstat (limited to 'wrappers/python/eduvpn_common')
-rw-r--r--wrappers/python/eduvpn_common/server.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/wrappers/python/eduvpn_common/server.py b/wrappers/python/eduvpn_common/server.py
index 36c3643..bae9ba4 100644
--- a/wrappers/python/eduvpn_common/server.py
+++ b/wrappers/python/eduvpn_common/server.py
@@ -36,12 +36,20 @@ class Server:
def __str__(self):
return self.display_name
+ @property
+ def category(self):
+ return "Custom Server"
+
class InstituteServer(Server):
def __init__(self, url, display_name, support_contact, profiles, expire_time):
super().__init__(url, display_name, profiles, expire_time)
self.support_contact = support_contact
+ @property
+ def category(self):
+ return "Institute Access Server"
+
class SecureInternetServer(Server):
def __init__(
@@ -58,6 +66,10 @@ class SecureInternetServer(Server):
self.support_contact = support_contact
self.country_code = country_code
+ @property
+ def category(self):
+ return "Secure Internet Server"
+
def get_type_for_str(type_str: str):
if type_str == "secure_internet":