Bug report #10813

Multiline StringParameter in the new modeler

Added by Etienne Trimaille almost 10 years ago. Updated about 9 years ago.

Assignee:Victor Olaya
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:19189


Hi dev, while importing my alg with a multiline string parameter, I have :

Traceback (most recent call last):
  File "/home/etienne/.qgis2/python/plugins/processing/modeler/ModelerDialog.py", line 401, in addAlgorithm
  File "/home/etienne/.qgis2/python/plugins/processing/modeler/ModelerDialog.py", line 406, in _addAlgorithm
    dlg = ModelerParametersDialog(alg, self.alg)
  File "/home/etienne/.qgis2/python/plugins/processing/modeler/ModelerParametersDialog.py", line 81, in __init__
  File "/home/etienne/.qgis2/python/plugins/processing/modeler/ModelerParametersDialog.py", line 135, in setupUi
    widget = self.getWidgetFromParameter(param)
  File "/home/etienne/.qgis2/python/plugins/processing/modeler/ModelerParametersDialog.py", line 323, in getWidgetFromParameter
    item = MultilineTextPanel(strings, self.model)
  File "/home/etienne/.qgis2/python/plugins/processing/modeler/MultilineTextPanel.py", line 45, in __init__
    self.combo.addItem(option.name(), option)
TypeError: 'unicode' object is not callable

Thanks !


#1 Updated by Giovanni Manghi almost 10 years ago

  • Resolution set to fixed/implemented
  • Status changed from Open to Closed

fixed here


#2 Updated by Giovanni Manghi about 9 years ago

  • Category changed from 94 to Processing/Core

Also available in: Atom PDF