Skip to content

Commit c6195be

Browse files
committed
align metadata names between __init__.py and metadata.txt:
deprecate authorName function in __init__ (but kept for compatibility), use author function instead
1 parent fc3be94 commit c6195be

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

python/plugins/plugin_installer/installer_data.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,9 +543,14 @@ def getInstalledPlugin(self, key, readOnly, testLoad=False):
543543
except:
544544
pass
545545
try:
546-
exec("auth = %s.authorName()" % key)
546+
exec("auth = %s.author()" % key)
547547
except:
548-
pass
548+
# "authorName" was deprecated in QGis > 1.8,
549+
# you must use "author" instead
550+
try:
551+
exec("auth = %s.authorName()" % key)
552+
except:
553+
pass
549554
try:
550555
exec("homepage = %s.homepage()" % key)
551556
except:

0 commit comments

Comments
 (0)