mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +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)
|
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):
|
||||||
|
Loading…
Reference in New Issue
Block a user