mozilla/configman — pull request #43 by twobraids (2012-05-15 18:08:41+00:00)
Title: added override default for Options

frequently in creating class hierarchies, the 'required_config' for a base class cannot know what defaults the derived classes will need. Until now, there has been no facility for derived classes to reach down into the requirements of the base class and manipulate the requirements. This change implements a simple interface for that need:

class A(RequiredConfig):
required_config = Namespace()
required_config.add_option(
'x',
default=23
)

class B(A):
A.required_config.x.override_default(68)