Re: [Rest2web-develop] Some More Progres
Brought to you by:
mjfoord
From: Michael F. <mi...@pc...> - 2005-07-22 08:05:15
|
Nicola Larosa wrote: >>Well - thats enough hacking for 1 night. >> >>2005/07/21 >>Changed Section.sequence to Section.scalars and Section.sections >>Added Section.configspec >>Sections in the root section now have no extra indentation >>Comments now better supported in Section and preserved by ConfigObj >>Comments also written out >>Implemented initial_comment and final_comment >>A scalar value after a section will now raise an error > > > Well done. > The nice thing is that everywhere that used ``Section.sequence`` could just use ``(Section.scalars + Section.sections)``. It was only used *inside* Section methods - so I just had to go through carefully changing them. I've now *fully* implemented comment support as well - although it's possible there are bugfixes still to do (of course). Seems to work though. > I *knew* I had better put my little fingers at rest. I hope you didn't try > to commit your changes, I undid mine just now, go ahead and commit yours, I > have the patch with my changes and will reapply the relevant ones sooner or > later. > No - I'd just checked out your version, and was downloading the win32 binaries for pygtk so I could get meld working. I prefer your idea though ;-) I'll commit my changes now. > Ah, the beauty of Version Control. :-) > Except I was *sure* I'd already made the changes to ``validate`` - so that it did the try..except business and changed values. Still - they're simple changes. The changes last night are the first *structural* changes to the core parser since I first implemented it. (Only very slight changes - much less than I expected). I'd like to get ConfigObj banged out of the way. There's lots I'd still like to do to my website, which means more work on rest2web. Getting ConfigObj finished/documented/packaged may still take a couple of weeks - but I don't want it to take any longer (if possible - better to get it right of course). All the best. Fuzzy http://www.voidspace.org.uk/python |