Skip to content
Permalink
Browse files

handle map layer data type when parsing description files

  • Loading branch information
alexbruy committed Mar 13, 2020
1 parent 2a60d64 commit 56971a9880637bd0817cc74c729604e0a1ec0731
Showing with 4 additions and 0 deletions.
  1. +4 −0 python/plugins/processing/core/parameters.py
@@ -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

0 comments on commit 56971a9

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