|
From: Matthew B. <mat...@gm...> - 2005-12-03 01:14:31
|
Hi, I am very sorry if I missed something simple, but is there an easy way to get a list of informative validation error messages from the ConfigObj.validate interface? I have run: res =3D config_obj.validate(vtor) and have a nested list of boolean values - but I want to be able to print out a list of items that failed validation and why. I am just thinking about reiterating through the option dictionary, running the validation by hand (.check) for each False in the 'res' dictionary, but this seems very cludgy - is there a better way? Thanks a lot, Matthew |