in clay/config.py [0:0]
def get(self, key, default=None):
'''
Get the configuration for a specific variable, using dots as
delimiters for nested objects. Example: config.get('api.host') returns
the value of self.config['api']['host'] or None if any of those keys
does not exist. The default return value can be overridden.
'''
value = self.config
for k in key.split('.'):
try:
value = value[k]
except KeyError:
return default
#sys.stderr.write('config: %s=%r\n' % (key, value))
return value