Skip to content

Commit

Permalink
handle map layer data type when parsing description files
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Mar 14, 2020
1 parent 2a60d64 commit 56971a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/plugins/processing/core/parameters.py
Expand Up @@ -117,6 +117,10 @@ def getParameterFromString(s, context=''):
elif clazz == QgsProcessingParameterMapLayer:
if len(params) > 3:
params[3] = True if params[3].lower() == 'true' else False
try:
params[4] = [int(p) for p in params[4].split(';')]
except:
params[4] = [getattr(QgsProcessing, p.split(".")[1]) for p in params[4].split(';')]
elif clazz == QgsProcessingParameterBoolean:
if len(params) > 2:
params[2] = True if params[2].lower() == 'true' else False
Expand Down

0 comments on commit 56971a9

Please sign in to comment.