|
From: L. C. <l.c...@gm...> - 2011-04-07 17:07:41
|
Hello all, I wanted to make one configuration specification file for multiple versions of the configspec. That way as the requirements of the configspec change, only one configspec has to be updated and it will still work with the old and new specs. Right now I have the configspec in the following format: > specVersion = float(min=0.0) > > # Common among all versions > [common] > id = integer(min=0) > ... > > # Specific to Spec Version .2 > [.2] > width = integer() > > #specific to spec version .1 > [.1] > height = integer() > The issue I have is that I don't think I can write a custom validate function to only validate the needed sections. Is it not possible for me to do this? Will I just have to make different configspec files and load them based on what specVersion is? Does this even make sense?! Thank you for your help, Leonardo |