mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-22 00:14:55 -05:00
[sextante] attempt to fix issue with non-ASCII characters in modeler
This commit is contained in:
parent
a880236bbc
commit
6ebedbc59d
@ -519,14 +519,14 @@ class ModelerAlgorithm(GeoAlgorithm):
|
|||||||
+ str(len(self.algs) - len(self.deactivated)) +"]")
|
+ str(len(self.algs) - len(self.deactivated)) +"]")
|
||||||
outputs = {}
|
outputs = {}
|
||||||
progress.setDebugInfo("Parameters: " +
|
progress.setDebugInfo("Parameters: " +
|
||||||
', '.join([str(p).strip() + "=" + str(p.value) for p in alg.parameters]))
|
', '.join([unicode(p).strip() + "=" + unicode(p.value) for p in alg.parameters]))
|
||||||
t0 = time.time()
|
t0 = time.time()
|
||||||
alg.execute(progress)
|
alg.execute(progress)
|
||||||
dt = time.time() - t0
|
dt = time.time() - t0
|
||||||
for out in alg.outputs:
|
for out in alg.outputs:
|
||||||
outputs[out.name] = out.value
|
outputs[out.name] = out.value
|
||||||
progress.setDebugInfo("Outputs: " +
|
progress.setDebugInfo("Outputs: " +
|
||||||
', '.join([str(out).strip() + "=" + str(outputs[out.name]) for out in alg.outputs]))
|
', '.join([unicode(out).strip() + "=" + unicode(outputs[out.name]) for out in alg.outputs]))
|
||||||
self.producedOutputs[iAlg] = outputs
|
self.producedOutputs[iAlg] = outputs
|
||||||
executed.append(iAlg)
|
executed.append(iAlg)
|
||||||
progress.setDebugInfo("OK. Execution took %0.3f ms (%i outputs)." % (dt, len(outputs)))
|
progress.setDebugInfo("OK. Execution took %0.3f ms (%i outputs)." % (dt, len(outputs)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user