changeset 2:35f57b21885f

no stubbing
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 24 Mar 2012 11:43:45 -0700
parents 1dbdb4a57e0c
children 1175fbabacaf
files configuration/config.py
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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