Le mardi 18 mars 2008 à 11:21 +0100, Denis Gautherot a écrit : > > > > > 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. > > ok i see. no problem. > > > > > > > > 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.... > > what do you mean by that ? elisa rewrites the config file each time it is > shutdown ? >
Yes the Elisa config can be updated by various components of Elisa, for instance by the config upgrader which manages config upgrades between the Elisa versions. Philippe
