Upgraded the Relay module - it supports multiple relays now.

This commit is contained in:
2021-08-28 21:02:23 +02:00
parent c04f76c0db
commit 012e16dd90
7 changed files with 409 additions and 158 deletions
+2 -2
View File
@@ -91,7 +91,7 @@ class DictionarySettingType(SettingType):
def set_value(self, value):
if not value:
self._set_raw_value("")
self._set_raw_value("{}")
elif isinstance(value, dict):
self._set_raw_value(json.dumps(value))
else:
@@ -102,7 +102,7 @@ class DictionarySettingType(SettingType):
if value:
return DictObject(json.loads(value))
else:
return value
return {}
def get_display_value(self):
return f"<highlight>{self.get_value() or '&lt;empty&gt;'}</highlight>"