Skip to content
Permalink
Browse files

align metadata names between __init__.py and metadata.txt:

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 c6195be226ffeff6994d308d67f9849431b8aa8d
Showing with 7 additions and 2 deletions.
  1. +7 −2 python/plugins/plugin_installer/installer_data.py
@@ -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:

0 comments on commit c6195be

Please sign in to comment.
You can’t perform that action at this time.