|
From: pisymbol . <pis...@gm...> - 2014-10-06 22:12:51
|
Hello: I am trying to do the following: foo.spec: [Foo] bar = custom_bar() If bar exists under Foo section, call custom_bar(). That works. However, if the INI file passed to ConfigObj.validate() does not contain bar at all, the section just fails validation since looking at the source, it seems validation is what sets the default value. Is there a way to write a custom check function and also have a default value filled in similar to the built-in ones like integer's, string's, default argument, etc.? I've looked high and low for an example and I can't seem to find one. Thanks! -aps |