Re: [Rest2web-develop] sections and configspec
Brought to you by:
mjfoord
From: Michael F. <mi...@pc...> - 2005-08-11 15:15:27
|
Peter TB Brett wrote: > > Nicola Larosa wrote: > > >>BTW, __repeated__ is a bit long, what about __many__? >> >>I also need nested repeated sections: >> >>[ cats ] >> [[ __many__ ]] >> color = string >> whiskers = int >> [[[ kittens ]]] >> [[[[ __many__ ]]]] >> age = string >>[ dogs ] >> [[ __many__ ]] >> color = string >> trained = boolean >> [[[ puppies ]]] >> [[[[ __many__ ]]]] >> age = string > > > > This is elegant: +1 vote from me. > > BTW, hi everyone, I'm a rest2web user. > Hello Peter, I'm working on the features you requested for rest2web. Shouldn't take *too* long I hope. The plugin system will also make it possible to extend rest2web yourself. I might even make it possible to plugin alternative templating systems. The documentation for ConfigObj should be ready soon as well - and then a beta release will follow. If you do any significant programming in Python then ConfigObj ought to be useful :-) I'm hoping Nicola will implement the solution suggested above for repeated subsections. Nesting them will be interesting though. Regards, Fuzzy http://www.voidspace.org.uk/python > Peter > > > |