Forum Archive

'Select from List' from within Python action ?

Rob

Am I right in thinking that a Select from List interaction can only be achieved as a workflow action ?

(i.e. that I haven't failed to notice an equivalent function in Editorial's Python libraries ?)

thanks,

Rob

pruppert222

I believe you're right. If you wanted to use the action and have it populated by options that were generated by a python script, you could have the script append those options to a python list and have those list items joined with a \n into a variable that is passed to the action_out variable to be used in in the Editorial list.

Rob

Thanks – that's helpful.

The problem is having to sandwich the 'Select from List' between two different Python modules when both populating the list from code and then using its output in further code – having to pass the state of various variables between two modules.

I am doing this mainly with a kind of JSON ping-pong in:

http://www.editorial-workflows.com/workflow/5270117608849408/OZjQ2s3oIyg

which does work, but I wanted to check that I wasn't getting into more complexity than is really needed :-)