Skip to content
Permalink
Browse files

[processing] fixed creating params and outputs from description strings

  • Loading branch information
volaya committed Oct 17, 2016
1 parent 52a0082 commit 25d0351d57cdf57b50f4cc67a8b43dcb41661d98
Showing with 4 additions and 2 deletions.
  1. +1 −1 python/plugins/processing/core/outputs.py
  2. +3 −1 python/plugins/processing/core/parameters.py
@@ -396,7 +396,7 @@ def _resolveTemporary(self, alg):

def getOutputFromString(s):
try:
if "|" in s:
if "|" in s and s.startswith("Output"):
tokens = s.split("|")
params = [t if str(t) != "None" else None for t in tokens[1:]]
clazz = getattr(sys.modules[__name__], tokens[0])
@@ -1513,7 +1513,7 @@ def setValue(self, value):

def getParameterFromString(s):
# Try the parameter definitions used in description files
if '|' in s:
if '|' in s and (s.startswith("Parameter") or s.startswith("*Parameter")):
isAdvanced = False
if s.startswith("*"):
s = s[1:]
@@ -1535,3 +1535,5 @@ def getParameterFromString(s):
return param
except AttributeError:
pass
except:
return None

0 comments on commit 25d0351

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