Denis Gautherot schrieb:
Hi all,
I have some general question about the configuration file of elisa:
Where is in your python sources the class that deals with read/write in your
configuration file ?
In our case it is in elisa-core/elisa/extern/configobj.py
Why didn't you use a real .ini config file format ? I mean, one that that would
be read/written easily within other application with standard ini file reader,
instead of rewriting each time a config file reader/writer...
Well, we didn't actually decide for our own format and wrote a new
reader. This kind of Ini-Like-Configuration-File is a very common format
in python. Mostly because there is a build-in python module that handels
it quiet well: http://docs.python.org/lib/module-ConfigParser.html .
So reading and writing such configuration file is really easy for python.
I ask this as i tried to make a php interface of the configuration file, to be
able to configure/manage elisa remotely, and i have to specifically write a
elisa.conf parser.
Very cool. But be aware of the fact, that you need to stop elisa BEFORE
changing the configuration file....
Thank you very much.
Denis.
hope, that helped you
Benjamin