Skip to content
Permalink
Browse files

[Processing] Manage default value for parameter

To finalize commit 3472ac8 update processing to well manage default value
  • Loading branch information
rldhont committed Dec 24, 2015
1 parent 2415e37 commit 7754f17a0b25b7cfd4ed6a281aa52552895aadb0
Showing with 88 additions and 70 deletions.
  1. +1 −1 python/plugins/processing/core/Processing.py
  2. +87 −69 python/plugins/processing/core/parameters.py
@@ -299,7 +299,7 @@ def runAlgorithm(algOrName, onFinish, *args, **kwargs):
# fill any missing parameters with default values if allowed
for param in alg.parameters:
if param.name not in setParams:
if not param.setValue(None):
if not param.setDefaultValue():
print ('Error: Missing parameter value for parameter %s.' % (param.name))
QgsMessageLog.logMessage(Processing.tr('Error: Missing parameter value for parameter {0}.').format(param.name), Processing.tr("Processing"))
ProcessingLog.addToLog(

0 comments on commit 7754f17

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