diff --git a/bin/CryptoBoxPlugin.py b/bin/CryptoBoxPlugin.py index e939555..324252c 100644 --- a/bin/CryptoBoxPlugin.py +++ b/bin/CryptoBoxPlugin.py @@ -25,6 +25,9 @@ class CryptoBoxPlugin: ## default icon of this plugin (relative path) defaultIconFileName = "plugin_icon.gif" + ## fallback icon file (in the common plugin directory) + fallbackIconFileName = "plugin_icon_unknown.gif" + def __init__(self, cbox, pluginDir): self.cbox = cbox @@ -62,7 +65,7 @@ class CryptoBoxPlugin: else: plugin_icon_file = os.path.join(self.pluginDir, image) if not os.access(plugin_icon_file, os.R_OK): - plugin_icon_file = os.path.join(self.cbox.prefs["Locations"]["PluginDir"], "plugin_icon_unknown.png") + plugin_icon_file = os.path.join(self.cbox.prefs["Locations"]["PluginDir"], self.fallbackIconFileName) return cherrypy.lib.cptools.serveFile(plugin_icon_file) diff --git a/bin/WebInterfaceSites.py b/bin/WebInterfaceSites.py index 67322db..2ca897e 100755 --- a/bin/WebInterfaceSites.py +++ b/bin/WebInterfaceSites.py @@ -253,7 +253,7 @@ class WebInterfaceSites: examples are: non-https, readonly-config, ... """ - ## TODO: maybe add an option "mount"? + ## TODO: maybe add an option "mount" (if it is available, but inactive)? if self.cbox.prefs.requiresPartition() and not self.cbox.prefs.getActivePartition(): self.dataset["Data.EnvironmentWarning"] = "ReadOnlyConfig" # TODO: turn this on soon (add "not") - for now it is annoying