mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
Converted to work.
This commit is contained in:
parent
5b2d89b086
commit
8aa74dee4b
@ -235,6 +235,7 @@ class Regexp(Value):
|
|||||||
return self.sr
|
return self.sr
|
||||||
|
|
||||||
class SeparatedListOf(Value):
|
class SeparatedListOf(Value):
|
||||||
|
List = list
|
||||||
Value = Value
|
Value = Value
|
||||||
def splitter(self, s):
|
def splitter(self, s):
|
||||||
"""Override this with a function that takes a string and returns a list
|
"""Override this with a function that takes a string and returns a list
|
||||||
@ -253,7 +254,7 @@ class SeparatedListOf(Value):
|
|||||||
self.setValue(L)
|
self.setValue(L)
|
||||||
|
|
||||||
def setValue(self, v):
|
def setValue(self, v):
|
||||||
Value.setValue(self, list(v))
|
Value.setValue(self, self.List(v))
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.joiner(self.value)
|
return self.joiner(self.value)
|
||||||
@ -271,8 +272,7 @@ class CommaSeparatedListOfStrings(SeparatedListOf):
|
|||||||
joiner = ', '.join
|
joiner = ', '.join
|
||||||
|
|
||||||
class CommaSeparatedSetOfStrings(CommaSeparatedListOfStrings):
|
class CommaSeparatedSetOfStrings(CommaSeparatedListOfStrings):
|
||||||
def setValue(self, v):
|
List = sets.Set
|
||||||
CommaSeparatedListOfStrings.setValue(self, sets.Set(v))
|
|
||||||
|
|
||||||
class Group(object):
|
class Group(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user