durusmail: quixote-users: Configuration of a Quixote app
Configuration of a Quixote app
2003-03-17
Re: Configuration of a Quixote app
2003-03-17
2003-03-17
2003-03-18
2003-03-17
2003-03-17
2003-03-17
2003-03-18
Configuration of a Quixote app
Jim Dukarm
2003-03-17
David Ascher wrote:
> ...how are people dealing with configuration files for their
> applications?...

In my app I am currently using one INI file for application
configuration and a separate INI for Quixote and Medusa server
configuration. I want them separate because this is an intranet
application where the person managing the application may not be the
person responsible for keeping the web interface going. The
server/Quixote INI file is very seldom edited, but the application INI
may be messed with more frequently. If I ever spin off a non-Quixote
or non-Medusa version of the application, the application INI will not
change.

My publisher class (subclass of SessionPublisher) reads the
server/Quixote INI file into a dict called config and then calls
self.configure(**config) to digest the information. That method
is inherited from the original Publisher class.

Jim Dukarm
DELTA-X RESEARCH
Victoria BC Canada


reply