registry: Add CommaSeparatedSetOfStrings.

This commit is contained in:
Valentin Lorentz 2014-08-10 18:07:04 +02:00
parent 1d4a1b13d8
commit a4398a8773

View File

@ -689,6 +689,13 @@ class CommaSeparatedListOfStrings(SeparatedListOf):
return re.split(r'\s*,\s*', s) return re.split(r'\s*,\s*', s)
joiner = ', '.join joiner = ', '.join
class CommaSeparatedSetOfStrings(SeparatedListOf):
List = set
Value = String
def splitter(self, s):
return re.split(r'\s*,\s*', s)
joiner = ', '.join
class TemplatedString(String): class TemplatedString(String):
requiredTemplates = [] requiredTemplates = []
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):