From e089c567c5fa05c98ee88d4c8f16f88cca58f9cb Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 28 Mar 2021 11:03:02 +0100 Subject: [PATCH 1/2] Update coriolis-data/ in `stable` --- coriolis-data | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coriolis-data b/coriolis-data index bb1e5ba8..a4f5d3fb 160000 --- a/coriolis-data +++ b/coriolis-data @@ -1 +1 @@ -Subproject commit bb1e5ba89acb940465714363b12c250ba399b5b9 +Subproject commit a4f5d3fb8176b808618962aceda27efda8947df2 From eed8db965ae899babb35354a5b544c910c7bd0c6 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 28 Mar 2021 11:07:52 +0100 Subject: [PATCH 2/2] config.py: Compatibility layer for newer API calls. This way a plugin updated for 5.0.0+ will work on next stable release. --- config.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config.py b/config.py index dafe3585..fc87d2b4 100644 --- a/config.py +++ b/config.py @@ -160,12 +160,24 @@ class Config(object): else: return None + def get_str(self, key): + return self.get(key) + + def get_list(self, key): + return self.get(key) + + def get_bool(self, key): + return self.get(key) + def getint(self, key): try: return int(self.settings.get(key, 0)) # should already be int, but check by casting except: return 0 + def get_int(self, key): + return self.getint(key) + def set(self, key, val): self.settings[key] = val