Re: [Rest2web-develop] Changed all references to value "tests" into value "checks"...
Brought to you by:
mjfoord
From: Michael F. <mi...@pc...> - 2005-07-21 15:17:06
|
Nicola Larosa wrote: >>Ok - so we just special case the top level and restrict scalars to >>before any sections. That's not so bad :-) [snip..] >>This means the ``write`` >>method needs to check all the members and write out the scalars first. >>*sigh* > > > Or else you could have two sequences, one for scalars and one for > subsections. Or maybe even an automatic "__scalars__" subsection that's > always first, and the scalars go in there. > Just a quick reply. I prefer to keep the section itself undivided and have two sequence attributes. Maybe ``scalars`` and ``sections`` lists ? Regards, Fuzzy http://www.voidspace.org.uk/python > > >>(This means it no longer necessarily obeys ``sequence``). > > > It obeys order of scalars, and order of subsections, but all scalars always > come before all subsections, that's the only exception. > > > >>Au contraire my friend - I only started writing ConfigObj 4 on your >>promptings - so you *have* been here from the start. > > > Ah, ok, I thought you were referring to previous versions of ConfigObj. > > > >>Which is why I'm surprised this didn't come up before... > > > Assumptions, assumptions... ;-) > > > >>Anyway - think I can sort it. > > > Glad to hear that. :-) > > |