Re: python parser for dotconf file

2008-07-09 Thread Hemant Goyal
Hi Hynek, I was working on the parser the whole day today, and have developed something that we can at least start working with. I like the idea of simply commenting out the parameters instead of deleting them. That will require me to make certain changes to the current code, I'll make those

Re: python parser for dotconf file

2008-07-09 Thread Hynek Hanke
So I think that the only reasonable way to modify them is to read all such options first, construct the list, then modify it and write back. I don't think it makes sense to modify them separately. Hmmm, so can we expect to get a list of dotConfObject(s) from the programmer I

Re: python parser for dotconf file

2008-07-07 Thread Hynek Hanke
Hello Hermant, 1. Would the dotconf project benefit from a generic python program that allows to read/editparameters within a dotconf file? I can't speak for DotConf, but Speech Dispatcher would surely benefit. I'm now working on a simple python tool that would guide the user

Re: python parser for dotconf file

2008-07-07 Thread Hemant Goyal
Hello Hynek, I can't speak for DotConf, but Speech Dispatcher would surely benefit. That's really good news, I am glad the code will prove useful to the speechd community as well. When there are several lines with the same parameter name, this should be treated as an enumeration or a list.

python parser for dotconf file

2008-07-03 Thread Hemant Goyal
Hi Lukas, I am working on a project to integrate speech-dispatcher (which uses dot.conf for its configuration files) into the olpc sugar environment. I need to modify the configuration files directly from a python program, and unfortunately python bindings of dotconf are not available. I