# HG changeset patch # User Jeff Hammel # Date 1332653124 25200 # Node ID 7910b0ef0baba3eb422eccab8e2d5e196e392e57 # Parent 92e1b2dd60c8d93b36ae30b9916b521784872808 stub configuration providers diff -r 92e1b2dd60c8 -r 7910b0ef0bab configuration/config.py --- a/configuration/config.py Sat Mar 24 22:14:59 2012 -0700 +++ b/configuration/config.py Sat Mar 24 22:25:24 2012 -0700 @@ -7,6 +7,7 @@ import sys import optparse +# imports for contigent configuration providers try: import json except ImportError: @@ -14,6 +15,23 @@ import simplejson as json except ImportError: json = None +try: + import yaml +except ImportError: + yaml = None + +configuration_providers = [] +if json: + class JSON(object): + extensions = ['json'] + configuration_providers.append(JSON) + +if yaml: + class YAML(object): + extensions = ['yml'] + def read(self, filename): + pass + configuration_providers.append(YAML) __all__ = ['Configuration']