Menu

#13 PluginInfo not returning Author, Copyright, Website details

Next Minor Release
closed
None
1
2014-04-18
2013-09-24
Anonymous
No

Hi,

I'm currently using 'Yapsy-1.10.2-pythons2n3' on Python 3 and have come across a minor issue.

Problem:

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)

Solution:

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

Discussion

  • Anonymous

    Anonymous - 2013-09-30

    I can confirm the bug and fix as stated above.

     
  • Thibauld Nion

    Thibauld Nion - 2014-03-22

    well that's a nasty one, I'll apply the fix asap

     
  • Thibauld Nion

    Thibauld Nion - 2014-03-22

    I mean asap after 7months (sorry for the delay).

     
  • Thibauld Nion

    Thibauld Nion - 2014-03-22
    • status: open --> pending
     
  • Thibauld Nion

    Thibauld Nion - 2014-04-18

    Fixed in v1.10.323

     
  • Thibauld Nion

    Thibauld Nion - 2014-04-18
    • status: pending --> closed
     

Anonymous
Anonymous

Add attachments
Cancel