Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: c584eb4b23
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.779 kB
from .namespace import Namespace
#==============================================================================
class RequiredConfig(object):
#--------------------------------------------------------------------------
@classmethod
def get_required_config(cls):
result = Namespace()
for a_class in reversed(cls.__mro__):
try:
result.update(a_class.required_config)
except AttributeError:
pass
return result
#--------------------------------------------------------------------------
def config_assert(self, config):
for a_parameter in self.required_config.keys():
assert a_parameter in config, \
'%s missing from config' % a_parameter
Jump to Line
Something went wrong with that request. Please try again.