Skip to content

Commit

Permalink
align metadata names between __init__.py and metadata.txt:
Browse files Browse the repository at this point in the history
deprecate authorName function in __init__ (but kept for compatibility), use author function instead
  • Loading branch information
brushtyler committed Oct 7, 2012
1 parent fc3be94 commit c6195be
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions python/plugins/plugin_installer/installer_data.py
Expand Up @@ -543,9 +543,14 @@ def getInstalledPlugin(self, key, readOnly, testLoad=False):
except:
pass
try:
exec("auth = %s.authorName()" % key)
exec("auth = %s.author()" % key)
except:
pass
# "authorName" was deprecated in QGis > 1.8,
# you must use "author" instead
try:
exec("auth = %s.authorName()" % key)
except:
pass
try:
exec("homepage = %s.homepage()" % key)
except:
Expand Down

0 comments on commit c6195be

Please sign in to comment.