PluginInfo not returning Author, Copyright, Website details
A fat-free DIY Python plugin management toolkit.
Brought to you by:
tibonihoo
Hi,
I'm currently using 'Yapsy-1.10.2-pythons2n3' on Python 3 and have come across a minor issue.
Please see the following code snippet:
manager = PluginManagerSingleton.get() for plugin_info in manager.getAllPlugins(): print("1" + plugin_info.author) print("2" + plugin_info.get("Documentation","Author"))
Returns:
>>> 1 None >>> 2 Author 1 Name >>> 1 None >>> 2 Author 2 Name >>> etc...
(i.e. the plugin_info.author property isn't returning the correct value)
yapsy/PluginInfo.py
is presently defined like so:
def __getAuthor(self): self.details.get("Documentation","Author")
However, I believe that instead this should simply be:
def __getAuthor(self): return self.details.get("Documentation","Author")
I also believe that similar changes are required for __getCopyright
and __getWebsite
.
Best regards,
Peter Kirkland
Anonymous
I can confirm the bug and fix as stated above.
well that's a nasty one, I'll apply the fix asap
I mean asap after 7months (sorry for the delay).
Fixed in v1.10.323