mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
registry: Add CommaSeparatedSetOfStrings.
This commit is contained in:
parent
1d4a1b13d8
commit
a4398a8773
@ -689,6 +689,13 @@ class CommaSeparatedListOfStrings(SeparatedListOf):
|
||||
return re.split(r'\s*,\s*', s)
|
||||
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):
|
||||
requiredTemplates = []
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user