Commit aa7fd325 authored by Julien Osman's avatar Julien Osman
Browse files

Merge branch '2245_fix_stringlist_documentation' into 'release-8.0'

Fix the Python exemples of string list parameters

See merge request !878
parents 17222010 52af559f
Pipeline #9480 passed with stages
in 84 minutes and 28 seconds
......@@ -86,7 +86,8 @@ def GetApplicationExamplePythonSnippet(app,idx,expand = False, inputpath="",outp
if app.GetListViewSingleSelectionMode(param):
output += "\t" + appname + ".SetParameterString("+EncloseString(param)+", "+EncloseString(value)+")"
else:
output += "\t" + appname + ".SetParameterStringList("+EncloseString(param)+", "+EncloseString(value)+")"
values = value.split()
output += "\t" + appname + ".SetParameterStringList("+EncloseString(param)+", "+ str(values) +")"
if paramtype == ParameterType_Group:
pass
if paramtype == ParameterType_Choice:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment