Being able to validate the list items using choices=servers below is nice.
choices=servers
servers = [ \"ApaServer\", \"BananServer\", \"GulServer\", \"SolServ
Modifying Michel's answer:
In [1]: x = [5,6,5] In [2]: x_nodups = list(set(x)) In [3]: x_nodups Out[3]: [5, 6] In [4]: x_nodups_michel = dict(map(lambda i: (i,1),x)).keys() In [5]: x_nodups_michel Out[5]: [5, 6]
Much shorter.