add validation upon mandatory options function

This commit is contained in:
gwen 2012-07-24 15:35:44 +02:00
parent 5730a97728
commit f5975777b9
1 changed files with 7 additions and 1 deletions

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