Transform a string with comma separated items into a set of id integers.
(s)
| 435 | return ', '.join(t) |
| 436 | |
| 437 | def idCommaString2IdSet(s): |
| 438 | """Transform a string with comma separated items into a set of id integers.""" |
| 439 | t = set() |
| 440 | if s is not None: |
| 441 | for value in s.split(','): |
| 442 | value = asInt(value) |
| 443 | if value is not None: |
| 444 | t.add(value) |
| 445 | return t |
| 446 | |
| 447 | def commaString2IntegerList(s): |
| 448 | l = [] |