Re: [Rest2web-develop] Re: We forked validate.py
Brought to you by:
mjfoord
From: Nicola L. <ni...@te...> - 2005-07-18 21:50:45
|
> I've got meld - I'll have to merge back in what you've done with the > docs. Not today - it's a bit manic :-( Bricks flying left and right, eh? ;-) > Obviously for any further work we need to agree specific areas that we > should each work on - then we can just discuss how we integrate the > different things we do, rather than both working on the same things at > the same time ! So, tell me what you think of my last commits to validate.py, before I go on and tackle configreader.py . :-) > I do have an implementation question. > > My current implementation for ConfigObj puts an attribute called > 'configspec' on the main ConfigObj. This is the parsed configspec with > all the tests, the structure follows the expected structure of your > config file (obviously). > > I'm wondering if it would be better to have a configspec attribute for > each Section - (as a dictionary). This would allow you to *individually* > test values as well. Individually as opposed to what? I'm not sure I understand. > The disadvantage of doing this is that you have to create each section > at the point you parse the configspec, which is before you parse the > config file. This means that sections that appear in the configspec, but > *not* in the config file, will have to be created anyway. This does not seem a big disadvantage, but again, I'm not sure I get it all. > What do you think ? Not much, I'm sure you're be able to explain it better, once the pressure subsides. > Anyway - I don't *think* I can blag IRC until I've put a proper effort > into poking a hole in our work firewall. (Requires me to construct a > website that looks like a building related website - I have registered a > domain specially !). *But* - I'm going to try and get Jabber working. So it's easier to chat from Romania than from Britain. Bah! ;-) See what you can do. -- Nicola Larosa - ni...@te... Learning C after learning Python can be done via Pyrex. [...] Learning Java after learning Python can be done via Jython. [...] Learning Perl after learning Python can ... never mind. ;-) -- André Roberge, May 2005 |