|
From: Darren S. <pha...@gm...> - 2015-01-07 06:29:26
|
Greetings, Have been enjoying the validator functionality in ConfigObj greatly (configspecs). I have a case where my configuration has a section which may contain many subsections, and I'd like the ability to apply a validator to the name of the subsections (they should only be integers in the range of 100 to 10000000). Is this currently possible in ConfigObj? Otherwise, something that could be made possible? Thinking something along the lines of a key name in the configspec of __name__, e.g.: [foo] [[__many__]] __name__ = integer(100,10000000) field1 = string field2 = integer(0,100) -- Darren Spruell pha...@gm... |