|
From: Michael F. <fuz...@vo...> - 2012-09-12 11:01:59
|
On 7 Sep 2012, at 15:05, Cornell Wright <co...@la...> wrote: > I've been starting to use ConfigObj4 and validate, it's a nice package. > I think there is an error in the get_extra_values example in configobj.html. > > # this code gets the extra values themselves > the_section = cfg > for section in sections: > the_section = cfg[section] > > > The last line should be: > the_section=the_section[section] > > Without that change, I get a key error on an extra value in a section > nested two deep. > Hello Cornell, Yes, I think you're correct. I'm not currently working on configobj but if you file an issue on the issue tracker it won't get lost if someone picks up working on it: http://code.google.com/p/configobj/issues/list All the best, Michael Foord > -- > Cornell Wright > > HPC-5 - High Performance System Integration > Los Alamos National Laboratory > 505-665-3109 - Office > 505-664-4084 - Pager (during work hours) > 505-695-4904 - Mobile (outside of work hours) > co...@la... - eMail > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Configobj-develop mailing list > Con...@li... > https://lists.sourceforge.net/lists/listinfo/configobj-develop > -- http://www.voidspace.org.uk/ May you do good and not evil May you find forgiveness for yourself and forgive others May you share freely, never taking more than you give. -- the sqlite blessing http://www.sqlite.org/different.html |