|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|