diff --git a/pythonrewrite/bin/WebInterfaceSites.py b/pythonrewrite/bin/WebInterfaceSites.py index 79df20b..1e1139f 100755 --- a/pythonrewrite/bin/WebInterfaceSites.py +++ b/pythonrewrite/bin/WebInterfaceSites.py @@ -33,14 +33,8 @@ class PluginIconHandler: for plugin in plugins.getPlugins(): if not plugin: continue plname = plugin.getName() - ## this should be the "easiest" way to expose all plugins as URLs - x = lambda: plugin.getIcon() - print x - print plugin.getIcon - def getIcon(p): - return p.getIcon() + ## expose the getIcon function of this plugin setattr(self, plname, plugin.getIcon) - ## the function is exposed in the CryptoBoxPlugin class - it did not work here