[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUe] Text File Configurations

From: Bajusz Tamás
Subject: Re: [GNUe] Text File Configurations
Date: Mon, 7 Jun 2004 22:02:48 +0200

>From gnue-common/datasources/drivers/special/

# Implementation of dbdriver for use with configuration files
# 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 <address@hidden> 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
> address@hidden
> Office (360) 968-1606
> Fax (707) 598-2550
> _______________________________________________
> Gnue mailing list
> address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]