Re: Text File Configurations

Bajusz Tamás <[email protected]>
Newsgroups gmane.comp.gnu.enterprise.general
Message-ID <[email protected]>
>From gnue-common/datasources/drivers/special/configfile.Connection.py

# DESCRIPTION:
# Implementation of dbdriver for use with configuration files
#
# NOTES:
#
# 1. every config section = one record
# 2. section name = field "_section_name" (handle it similar to a private key)
#        i.e. throw an database error, if two sections have the same name
# 3. empty records wont be written, only if you write an '""' into it
# 4. The path and filename of the config file should be provided by the
#    dbname, or a filename attribute of the <database> tag (both work).
#    The place holder '~' and '%configdir%' will be resolved.

Bajusz Tamás


On Sat, 5 Jun 2004 13:45:08 -0500
Christopher Lewis <[email protected]> wrote:

> I was looking through the sample forms and found the connection.gfd form.  It 
> looks good and works well, but I need a little help understanding how it 
> works.  
> 
> I can see that it reads the file directly, because the form started with my 
> customized settings.  I just don't see how it understands the sections and 
> variables.  I don't see how it reads the file into the form, or how it writes 
> the form variables back to the file.
> 
> The reason I ask is because I would like to use gnue-forms to make a 
> configuration program for other programs, like Asterisk, Apache, Kolab 
> server, and some others.  
> 
> Thanks in advance.
> -- 
> Christopher Lewis
> [email protected]
> Office (360) 968-1606
> Fax (707) 598-2550
> 
> 
> 
> _______________________________________________
> Gnue mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/gnue
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.