mozilla/configman — pull request #31 by twobraids (2012-03-24 19:48:42+00:00)
Title: added class instantiator converter function for convenience

when you've got a class as configman option, you inevitably are going to want to instantiate it. The regular converter function, `class_converter`, only goes halfway. I've added a new function, `class_instantiator` that follows through with loading and instantiation.

required_config.add_option('my_class',
default='some.class',
from_string_converter=class_instantiator('my_class_instance'))

This will result in a config dict with the following values:

config.my_class == some.class
config.my_class_instance == some.class(config)