add validation upon mandatory options function

This commit is contained in:
gwen 2012-07-24 15:35:44 +02:00
parent 5730a97728
commit f5975777b9

View file

@ -536,5 +536,11 @@ def make_dict(config, flatten=False):
pass # this just a hidden or disabled option
options = dict(pathsvalues)
return options
# ____________________________________________________________
def mandatory_warnings(config):
for path in config.getpaths():
try:
value = getattr(config, path)
except MandatoryError:
yield path