Skip to content
Permalink
Browse files

[processing] dont use hidden outputs when exporting to python or disp…

…laying alg help

fixes #14998

Conflicts:
	python/plugins/processing/core/GeoAlgorithm.py
  • Loading branch information
volaya authored and alexbruy committed Oct 18, 2016
1 parent 90db246 commit eb5fc90f44521411ca85aa1ed45be1bd981a7f6f
@@ -462,7 +462,8 @@ def __str__(self):
for param in self.parameters:
s += '\t' + str(param) + '\n'
for out in self.outputs:
s += '\t' + str(out) + '\n'
if not out.hidden:
s += '\t' + str(out) + '\n'
s += '\n'
return s

@@ -154,10 +154,11 @@ def _toString(v):
return str(value)
params.append(_toString(value))
for out in self.algorithm.outputs:
if out.name in self.outputs:
params.append(safeName(self.outputs[out.name].description).lower())
else:
params.append(str(None))
if not out.hidden:
if out.name in self.outputs:
params.append(safeName(self.outputs[out.name].description).lower())
else:
params.append(str(None))
s.append("outputs_%s=processing.runalg('%s', %s)" % (self.name, self.consoleName, ",".join(params)))
return s

0 comments on commit eb5fc90

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