# HG changeset patch # User Jeff Hammel # Date 1332614625 25200 # Node ID 35f57b21885ff25696b2cffbbfb65a5c96559e7a # Parent 1dbdb4a57e0c9908a30ad5e7209e0b853b3dd09a no stubbing diff -r 1dbdb4a57e0c -r 35f57b21885f configuration/config.py --- a/configuration/config.py Sat Mar 24 11:39:29 2012 -0700 +++ b/configuration/config.py Sat Mar 24 11:43:45 2012 -0700 @@ -10,6 +10,20 @@ class Configuration(object): options = {} + def __init__(self): + self.config = {} + + def check(self): + """check validity of configuration""" + + def __call__(self, *args): + """add items to configuration and check it""" + + def add(self, config): + """update configuration: not undoable""" + self.config.update(config) + # TODO: option to extend; augment lists/dicts + def main(args=sys.argv[:]): # parse command line options